Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-native open google maps with specific address on Android

So I want to open the Google Maps app with specific address from my react- native App but all modules I found required to know the exact latitude and longitude of the address which I don't know I just want the app itself to find them by the address that is given to it.

What could be the best way to do it? Is there like some specific url that I can use?

like image 668
chnging Avatar asked Mar 06 '26 13:03

chnging


1 Answers

You Can use Linking Api to do that

Linking.openURL('https://www.google.com/maps/search/?api=1&query=centurylink+field');

just change query value to what you want

like image 149
Ahmed Ali Avatar answered Mar 09 '26 03:03

Ahmed Ali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!