谷歌地图的API来获取所有的地方信息,如电话号码,开放时间 [英] google maps API to get all the place information like phone number , opening hours

查看:540
本文介绍了谷歌地图的API来获取所有的地方信息,如电话号码,开放时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google地图API来获取所有地点信息,例如电话号码,开放时间..当我在开发人员站点中使用placeid进行测试时,我获得所有详细信息,但是当我发送send my placeid时,我只得到address_components详细信息。



开发者:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyBz2O-udgMv8PnaY-2tW118Uz1182ApEiw



我的链接:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJ2xEZitrOUUYR0a9wjkKF9_g&key=AIzaSyBz2O-udgMv8PnaY-2tW118Uz1182ApEiw

我找到了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.

developers : https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=AIzaSyBz2O-udgMv8PnaY-2tW118Uz1182ApEiw

My link: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJ2xEZitrOUUYR0a9wjkKF9_g&key=AIzaSyBz2O-udgMv8PnaY-2tW118Uz1182ApEiw

解决方案

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屋!

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