feat: add external directions referral

feat: change map page
feat: add error handling and timeout to location fetching in directions

resolves #124
resolves #122
This commit is contained in:
2023-08-02 17:53:49 +02:00
committed by Thea Schöbl
parent 3c49c4cf6d
commit a5c9d22016
38 changed files with 401 additions and 367 deletions

View File

@@ -244,6 +244,25 @@
}
},
"map": {
"directions": {
"TITLE": "Directions",
"TITLE_LONG": "Directions to {{name}}",
"ADDRESS": "{{streetAddress}}, {{addressLocality}} {{postalCode}}",
"COPY_ADDRESS": "Copy Address",
"ADDRESS_COPIED": "Address copied",
"GOOGLE_MAPS": {
"TITLE": "Google Maps",
"URL": "https://www.google.com/maps/dir/?api=1&destination={{lat}},{{lon}}&origin={{posLat}},{{posLon}}"
},
"APPLE_MAPS": {
"TITLE": "Apple Maps",
"URL": "https://maps.apple.com/?daddr={{lat}},{{lon}}&saddr={{posLat}},{{posLon}}"
},
"OSM_ROUTING": {
"TITLE": "OpenStreetMaps Routing",
"URL": "https://routing.openstreetmap.de/?loc={{posLat}},{{posLon}}&loc={{lat}},{{lon}}&srv=2&hl=en"
}
},
"page": {
"TITLE": "Map",
"search_bar": {