How to open google maps from an IONIC app - ionic-framework

I have an IONIC app that gets a certain location as lat, long from a service call. I want to give a functionality in my app where the user can click on a button and google maps should open with the location already marked.
I have tried
https://ionicframework.com/docs/native/launch-navigator
but its somehow when the google maps opens I cant find a way there message.
This is probably because the location does not exactly point to somewhere on a road (i guess), but even if it's not how can I get navigation to the nearest road

This Plugin Only works on actual devices and not on a browser

Related

Show waze map in my ionic app

I want to create an app that show the route between the current location and the user input location, so I want to show two option, the first the google maps route and the another waze maps, the google maps it's ok, I got. But the waze I didn't get find any thing about it. So my ask is, Have one plugin or something that make the waze maps show inside of my ionic?
Launch Navigator is helping you to open map using multiple maps app.check out this https://github.com/dpa99c/phonegap-launch-navigator-example.
Now ionic 2 onwards support plugin to open other navigator app from ionic app. Please refer to answer at this thread.

How to drop a pin on Google Maps iPhone app via web link?

I used to just be able to have a link to a coordinate on Google Maps, like https://maps.google.com/maps?q=35.7491455078125,139.382995605469
but now that Apple kicked out the original Maps app, and Google has re-launched another one, links like that no longer drop a pin on the maps of iOS users.
Is there a way to drop a pin on a visitor's Google Maps app with the click of a link?
Sounds like the official Maps URLs would work for you. In your example, this should work (and across platforms, too!):
https://www.google.com/maps/search/?api=1&query=35.7491455078125,139.382995605469
You can read the full documentation at https://developers.google.com/maps/documentation/urls/guide
Replace http://maps.google.com with http://maps.apple.com, hopefully that works!

Is it possible to add additional options to the location info view in the iPhone maps app?

Currently, when I find a location in the Maps app on the iPhone, I can go to the info screen and click the phone number to call them, the website address to visit the website, etc. I would like to develop an app that adds additional options to this page. I suspect this is not possible, but I was hoping someone here on SO would tell me otherwise. Thanks!

Launching the iPhone native Maps app with current location

I've seen a lot of code samples here on how to launch the Maps app but none of them actually launch the native app, they all launch Google's website on Safari instead (http://maps.google.com...). I've seen an app before, can't recall the name, that launched the iPhone maps application itself and on the address bar of the apps it has a string that looked like "hotel loc:XX.XXXX, XX.XXXX" which would select the current location on the map based on the coordinates provided on the address and pin point all hotels in the nearby area (visible area). I'm positive that it launched the native app because all the app settings were there and of course the app was among the running apps on the phone and safari wasn't open. I looked at the MapKit but wasn't able to pass that address to it from code ("hotel loc:longitude, latitude").
Does any of you guys happen to know how to launch the actual native app and pass an address to it?
https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html
URLs launched from within an app that fulfil the criteria in the developer document will open up in the Maps application. This is a key difference, because in most applications you use a custom URL scheme, whereas for the maps you simply fire up a URL for maps.google.com
However, if you a) don't follow the specs in that document to the letter, or b) are running in the simulator, you'll go to the Google Maps web page in Safari.

Opening native map application from url in iPhone, Android, Blackberry

I was trying to open the native map application to show direction from Current Location to the given location. Understandably, the url should work on all the smart phones, not just iPhone.
The most common url that can be used for all the phones can be maps.google.com.
For iPhone I have used http://maps.google.com/maps?saddr=Current%20Location&daddr=lat,lon. It works perfectly fine, iPhone opens the map with my Current Location and the destination location and draws direction. But it doesn't work on other devices.
Any suggestion ?
Thanks.
I've written a blog post addressing this topic and how open native map apps, not just the google site. Check it out here : http://habaneroconsulting.com/insights/Opening-native-map-apps-from-the-mobile-browser.aspx