旅游目的地API [英] Travel destinations API

查看:125
本文介绍了旅游目的地API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您用一个国家/地区的名称搜索,结果页面显示一个名为旅行指南"的部分,其中包含有关该国家/地区的旅行信息和一些目的地,如下图所示.

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.

是否可以通过以下方式获取此类数据(例如,国家/地区名称,描述,要做的事情(带有标题,描述,图像的数组),热门旅行,何时访问等). Google Places API ?

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.

如果不可能,是否还有另一个api可以使我接近此数据?

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

推荐答案

有多个酒店搜索API,但在您的情况下,您需要游览/吸引力数据.

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

尝试使用此Google Places API URL.您将在(例如:)纽约市获得景点/景点/旅游景点.您必须将城市名称"与关键字兴趣点"一起使用

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

此API调用结果与以下google搜索结果的结果相同.

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

纽约景点

2) 如果您需要一些第三方数据,也可以尝试博物馆API

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

体验/在纽约的地方

这篇关于旅游目的地API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆