简体   繁体   中英

Google Maps: input Lat and Long and receive images, information, name etc

I'm making an app in android studio where the user can enter in a lat and long point and a new activity will open up with the name of the location, images and possibly some paragraphs of information.

I'm not too sure how to approach this, and which apis to use; if anyone could point me to the right direction with some handy tips and/or code snippets it would be greatly appreciated !

Thanks.

You can use the Google Places API and the Google Places API Web Service .

According to the documentation for the Google Places API Web Service , you can retrieve a place details with a query like

https://maps.googleapis.com/maps/api/place/details/output?parameters

and you will receive a JSON or XML response with the place details.

You can even access a places photos ( documentation ) to access the photos stored in the Places and Google+ databases.

Take into account that you will nedd an API key to query these services so you may want to check the pricing and plans options .

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