Currently i am working with ionic 3 project.
I have latitude and longitudes of particular location and want to get root of that location using google map Mobile Application, Just want to open that location by navigating to google map app. do anyone here with any suggestions or idea ?
Thanks
As of 2017 the recommended by Google method is the Google Maps URLs:
https://developers.google.com/maps/documentation/urls/guide#directions-action
You can create a cross-platform universal URL for Google directions following the documentation and use the URL in your intents. For example the URL might be something like
https://www.google.com/maps/dir/?api=1&destination=60.626200,16.776800&travelmode=driving
You can use Ionic Native Launch Navigator now to load the native maps app to a destination. You can specify the app launchnavigator.APP.GOOGLE_MAPS
or the user can specify.
Pass the lat long as first argument as shown here
this.launchNavigator.navigate([50.279306, -5.163158], options)
.then(
success => console.log('Launched navigator'),
error => console.log('Error launching navigator', error)
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With