retrieve points of interests (attractions/tourist places) of a place/country using google places api

前端 未结 5 2238
故里飘歌
故里飘歌 2020-12-05 16:37

I want to retrieve points of interests of a place/country through google places api say \'points of interests in london\'. I want the results to be same as I google search

5条回答
  •  醉话见心
    2020-12-05 17:07

    I worked on a project that made extensive use of this functionality. In the end, the best way to get attractions in a city was to use a query like:

    https://maps.googleapis.com/maps/api/place/autocomplete/json?input=your-query-here&types=establishment&location=37.76999,-122.44696&radius=500&key=YOUR_API_KEY

    If you want points of interest that aren't businesses, remove the types=establishment arg.

提交回复
热议问题