0

使用 android Geocoder 我可以找到诸如 Google Maps 之类的商店,或者我只能搜索街道、纪念碑、机场等??我想用名字搜索购物中心...

4

1 回答 1

0

在 Internet 上搜索 GeoCoding 的示例。

但这就是我的建议:

您可以使用Google Places API,它允许您通过指定type您正在查找的内容来搜索某个半径内的位置。

http://code.google.com/apis/maps/documentation/places/#PlaceSearchRequests

您所要做的就是解析指定的 URL 的输出,使用JSON(parse the latitude and longitude and the name of the building) 或XML. 并在地图上显示叠加层。

http://code.google.com/apis/maps/documentation/places/supported_types.html

这是您可以搜索的类型列表。

于 2011-07-23T19:54:33.700 回答