From f1314a0237d263bee7070984ca036f4395e15281 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Thu, 12 Aug 2021 21:25:24 -0500 Subject: [PATCH] Fix Apple map pin Fixes #27 --- custom_components/places/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/places/sensor.py b/custom_components/places/sensor.py index 4164b8ba..fa3785de 100644 --- a/custom_components/places/sensor.py +++ b/custom_components/places/sensor.py @@ -480,7 +480,7 @@ def do_update(self, reason): home_location = home_latitude + "," + home_longitude #maplink_google ='https://www.google.com/maps/@' + current_location+',' + self._map_zoom + 'z' - maplink_apple = 'https://maps.apple.com/maps/?ll=' + current_location + '&z=' + self._map_zoom + maplink_apple = 'https://maps.apple.com/maps/?q=' + current_location + '&z=' + self._map_zoom #maplink_google = 'https://www.google.com/maps/dir/?api=1&origin=' + current_location + '&destination=' + home_location + '&travelmode=driving&layer=traffic' maplink_google = 'https://www.google.com/maps/search/?api=1&basemap=roadmap&layer=traffic&query=' + current_location if (new_latitude != 'None' and new_longitude != 'None' and