List sights via the Google Maps API

Asked

Viewed 824 times

1

I at the moment oblige the user to fill the hand all tourist spots by making a loop in the code.

However, I wanted to know how to get this information from the sights automatically, more or less the way this hotel did: http://www.praiamarnatal.com.br/location.htm

Where he searches for categories and makes the separation.

1 answer

1

Google has an API for this, called Google Places API. You can find it here: https://developers.google.com/places/? hl=en

The functions of the Google Places Javascript library allow the app search locations (defined in this API as establishments, geographical locations or prominent points of interest) contained in a defined area, such as the boundaries of a map or the vicinity of a fixed point.

This API is very complete, it has options to get Places based on a particular location or place type.

  • Thank you, I’ll take a look here

  • I am looking in the API, and I can not find information to display these texts were from the Map. I can only put that information inside the map, I’d like to put it on a page, on the outside.

  • I think you’re looking for Places on the maps themselves: https://developers.google.com/maps/documentation/javascript/places - other source: http://stackoverflow.com/questions/11642418/trying-to-use-google-places-api-with-jquerys-getjson-function

Browser other questions tagged

You are not signed in. Login or sign up in order to post.