google-mapsgoogle-places-api

Google Maps Places URL not found on Android Google Maps


If I open this link on any browser the Google-place-id search works perfectly: https://www.google.com/maps/place/?q=place_id:ChIJJcSdk7-Zc0cRIgxgLHUWgzE

Nevertheless if I try to open that link on my mobile phone (Android), it per default uses the Google Maps app and can't find the place there. I know as a workaround I could switch my default app to browser, but I can't force all the users to switch their default app.

Any best practice what to do so the link also works and become valid on Android/Google Maps app?


Solution

  • The supported URL is https://www.google.com/maps/search/?api=1&query=%20&query_place_id=ChIJJcSdk7-Zc0cRIgxgLHUWgzE as described in Maps URLs.

    Even if you have a Place ID, the query parameter is required, to be used as a fallback in the event that ChIJJcSdk7-Zc0cRIgxgLHUWgzE is not found. You may use this in a few different ways:

    https://www.google.com/maps/place/?q=place_id:ChIJJcSdk7-Zc0cRIgxgLHUWgzE is the kind of URL that looks nice but is not supported and may stop working any time. Also, as you seem to have found out, it doesn't work everywhere, possibly because it was never meant to.