is there a way to get gps coordinates from a zip code in php? for example, I have a mysql table with customers and their address and zip codes, I would like only to use the zip codes to generate the json file with gps coordinates, is something like that possible? After that I would use that json file to show customers on google maps. thanks in advance
1条回答 默认 最新
- duanmei2459 2013-11-23 08:54关注
Google offers a geocoding api. Send an http request such as:
http://maps.googleapis.com/maps/api/geocode/json?address=55309&sensor=false
Where 55309 is your the desired zipcode.
Then you can parse the xml or json accordingly to get the longitude and latitude.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 win11 23H2删除推荐的项目,支持注册表等
- ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
- ¥15 qt6.6.3 基于百度云的语音识别 不会改
- ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
- ¥15 神经网络怎么把隐含层变量融合到损失函数中?
- ¥15 lingo18勾选global solver求解使用的算法
- ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
- ¥20 测距传感器数据手册i2c
- ¥15 RPA正常跑,cmd输入cookies跑不出来
- ¥15 求帮我调试一下freefem代码