Skip to content

Commit

Permalink
Fix Apple map pin
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
iantrich authored Aug 13, 2021
1 parent 4c352c4 commit f1314a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/places/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1314a0

Please sign in to comment.