I have an external link linking to Google Maps (app if installed or site if not). It includes the Origin and Destination and tells it to use walking as the mode of travel. It works fine on an Android phone but on an iPhone it adds in a %20 instead of a space in various places. I have tried several ways to replace this including as per image (both with RegEx checked and not)
This is the error that Google Maps gives back on the iPhone:
We could not find â7A%20Whitton%20Waye,%20Hounslow%20TW3%202LT,%20UKâ We could not find âHorse%20Guards%20Rd,%20Westminster,%20London%20SW1A,%20UKâ
Thanks @equibodyapp I tried what you did however it doesnât seem to work for me at all. It opens Google maps but doesnât pull in the required destination, nor does it open a directions view in there which is what I want (showing the walking version).
Hmm, I keep trying too and it doesnât like it even when I manually put in the data with that link. Are you sure that is how the link should be formatted?
The original settings I posted in the first message works fine on Android, only on ioS does it fail to understand the %20 and so does not understand the origin or destination
Ah, itâs a private plugin. Itâs just more or less an easy way to have a placeholder. Still requires the need to find and replace the spaces with +. I can share it or just make it public.
The link above looks good. Only thing Iâm now noticing is @2020travelapp is using the âcalculate coordinatesâ. This shouldnât be necessary as long as your passing the from and to address in the url. Google will automatically format it for you. Next test you run, watch the url bar change.
Thanks to @lantzgould verifying that this is how it works. I got it working, you can copy and paste from here first to make sure it works. Then insert your dynamic data one piece at a time.
I have installed the plugin and had my first time getting it to work on iOS, thanks for that. However on my Android it opens ok in the browser but it gives me an option to go to the app (Google Maps, installed) and this gives the following error when clicked.
Hi again and thanks again for the help with this, itâs very much appreciated.
I sent the link to the editor in view-only to you both in a PM.
This is the trigger (clicking the walking man on map tab in bottom tab list if you open it). In editor Group Main â Group Maps â Group Maps Centre â RepeatingGroup Info Point in Maps Centre â Group Google Map Directions to IP)
I have saved all Locationâs addresses in our Database as latitude and longitude, which when saved write as an address and this gives a better level of accuracy.
This is the Information Point (attached to a Location with the same name) for âWestminster Bridgeâ in our Admin system (tour_admin page). The user can drag around the map or add lat/long to specify exact point.
I am using this app via BDK Native as its primary use which I think might be part of the issue here now. This means we have a native app for iOS and Android - click this to go to install and straight to relevant page in app for this tour here:
It seems to work now in browser (though I need to look again at the destination as the accuracy isnât what it should be though I think I can generate the address from the lat/long as I had previously as the interim step to make this work.
On Android from browser it works as expected (it opens the built-in Google maps)
On iOS in browser it does the same but opens Google Maps in browser as App is not installed.
On Android app it asks to leave the app (which it didnât on my previous implementation via Link), then opens in a variation of Google Maps I donât recognise (see image), which seems to be within our app