谷歌地图的API来获取所有的地方信息,如电话号码,开放时间 [英] google maps API to get all the place information like phone number , opening hours
问题描述
我使用Google地图API来获取所有地点信息,例如电话号码,开放时间..当我在开发人员站点中使用placeid进行测试时,我获得所有详细信息,但是当我发送send my placeid时,我只得到address_components详细信息。
我找到了p roblem与place_id而不是请求,因为xomena说请求返回类型路由的结果,但我尝试了你写的2个请求,并且它返回了与我的请求相同的数据,因为placeId。
谢谢大家:)
I am using google maps API to get all the place information like phone number , opening hours .. when I test with the placeid in the developers site I get all the details but when I send send my placeid I get just the address_components details.
I found the problem it was with the place_id and not the request , as xomena saying the the request returns result of type route, but I tried what 2 requests you wrote and it returns the same data I got with my request because of the placeId.
thank you all anyway :)
这篇关于谷歌地图的API来获取所有的地方信息,如电话号码,开放时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!