开发者

Google Maps API v3 show local businesses/points of interest

开发者 https://www.devze.com 2023-02-09 08:24 出处:网络
I know at some point I\'d come across a Google service built into their API that would provide local information as markers on the viewport (schools, hospitals, etc.)-- I believe this was a simple con

I know at some point I'd come across a Google service built into their API that would provide local information as markers on the viewport (schools, hospitals, etc.)-- I believe this was a simple control that could be added just like the normal map controls, to all开发者_如何学JAVAow users to turn it on or off with a checkbox or button.

I can't seem to find this feature documented anywhere in the v3.0 API docs. Can anyone provide some information on this, or let me know if it was deprecated?

Thanks


I believe Google Places API is what you are looking for.

Google Places API

Here is a snapshot of the partial JSON output:

   {
    "name": "Biaggio",
    "vicinity": "Pirrama Rd, Pyrmont",
    "types": [ "cafe", "food", "establishment" ],
    "geometry": {
      "location": {
        "lat": -33.8666470,
        "lng": 151.1956500
      }
    },
0

精彩评论

暂无评论...
验证码 换一张
取 消