Search code examples
androidhtmlcordovagoogle-mapsgeo

Open Google Map externally (PhoneGap)


I am using PhoneGap in order to create an Android app. However, I have faced an issue. I would like to open Google Maps (app) through my app, however, the app does not respond on the href.

I am using the PhoneGap app in the Google Play Store in order to debug my app -> https://play.google.com/store/apps/details?id=com.adobe.phonegap.app&hl=nl

Code:

<a href="geo:38.897096,-77.036545">open map</a>


Solution

  • your href is not ok, try this

    <a href="https://www.google.com/maps/@-38.897096,-77.036545,8z,">open map</a>