Travel destinations API [closed]

喜夏-厌秋 提交于 2020-01-01 05:41:31

问题


When you google a country's name, the results page displays a section called "travel guide", which includes travel info about that country and a little list of destinations as shown in the image below.

Is there a way to fetch this kind of data (eg, country name, description, things to do (as an array with title, description, image), popular trips, when to visit, etc...) via the Google Places API?

I've been researching it for a while now and haven't been able to get anywhere near.

If it isn't possible, is there another api that could get me somewhere near to this data?


回答1:


There are multiple Hotel search APIs but in your case you need tour/attractions data.

Try this Google Places API URL. You will get the point of interest/Attraction/Tourists places in (For Eg:) New York City. You have to use the CITY NAME with the keyword Point Of Interest

https://maps.googleapis.com/maps/api/place/textsearch/json?query=new+york+city+point+of+interest&language=en&key=API_KEY

This API call results are same as the results of the below google search results.

New York point of interest

2) If you want some third party data then you can also try Musement API

Experinces/Places in New York



来源:https://stackoverflow.com/questions/49887062/travel-destinations-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!