简体   繁体   English

谷歌地图:输入纬度和长度,并接收图像,信息,名称等

[英]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. 我正在android studio中制作一个应用程序,用户可以在其中输入一个长点和一个新的活动将打开,其中包含位置,图像和可能的一些信息段的名称。

I'm not too sure how to approach this, and which apis to use; 我不太清楚如何处理这个,以及使用哪个api; 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 . 您可以使用Google Places APIGoogle Places API网络服务

According to the documentation for the Google Places API Web Service , you can retrieve a place details with a query like 根据Google Places API网络服务的文档 ,您可以使用类似的查询检索地点详细信息

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

and you will receive a JSON or XML response with the place details. 并且您将收到包含地点详细信息的JSON或XML响应。

You can even access a places photos ( documentation ) to access the photos stored in the Places and Google+ databases. 您甚至可以访问地点照片( 文档 )来访问存储在地方信息和Google+数据库中的照片。

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 . 考虑到您将需要一个API密钥来查询这些服务,因此您可能需要检查定价和计划选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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