Add Here WeGo URL
This commit is contained in:
parent
ef53f193e2
commit
99b6ccdefc
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,13 @@ class RoomDetailView(LoginRequiredMixin, QuickActionsMixin, SessionResetMixin, g
|
|||
if user_agent.is_mobile:
|
||||
url = f"waze://?ll={self.object.latitude},{self.object.longitude}&navigate=yes"
|
||||
name = 'Waze'
|
||||
|
||||
quick_actions.append({
|
||||
'url': f"here-location://{self.object.latitude},{self.object.longitude}",
|
||||
'category': 'info',
|
||||
'display': 'Here WeGo',
|
||||
'icon': 'fas fa-location-arrow',
|
||||
})
|
||||
else:
|
||||
url = (f"https://www.google.com/maps/place/{self.object.latitude},{self.object.longitude}"
|
||||
f"/@{self.object.latitude},{self.object.longitude},18z")
|
||||
|
|
Loading…
Reference in a new issue