简体   繁体   English

结合Google和Factual API?

[英]Combining Google and Factual APIs?

I am using the Factual API along with the Google Maps API to get data for Restaurants in a certain city. 我正在使用Factual API和Google Maps API来获取某个城市的饭店数据。 As the name suggests, Factual deals with Factual data and does not include Restaurant images as apart of their API. 顾名思义,Factual处理Factual数据,并且不包含餐厅图像作为API的一部分。

Does anybody know if it is possible for me to compare the Place ID in factual to the Place ID in maps and get the correct Restaurant image associated with it? 有人知道我是否可以将实际的位置ID与地图中的位置ID进行比较,并获得与其相关的正确的餐厅图片?

The ids are distinct. 这些ID是不同的。 To get pictures do a Google Places text search on the factual name. 要获取图片,请对真实姓名进行Google Places文本搜索。 Use the results[0].place_id to do a Place details search. 使用结果[0] .place_id进行场所详细信息搜索。 I do this and get results about 95% of the time. 我这样做可以在大约95%的时间内获得结果。

Why not just use Google Places API premium package rather than Factual? 为什么不使用Google Places API高级软件包而不是Factual? I'm look at which one to pick, but if I'm going to be using maps, why pay twice? 我正在看应该选择哪一个,但是如果我要使用地图,为什么要支付两次? Maybe I'm missing something. 也许我想念一些东西。 The big difference is downloading the data for factual vs google api, but it doesn't matter for me, using an API is probably easier than importing data anyway. 最大的区别是下载事实数据与Google api的数据,但对我而言并不重要,无论如何,使用API​​可能比导入数据更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM