简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM