简体   繁体   中英

Google Maps API v3 show local businesses/points of interest

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 allow 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
      }
    },

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