我如何使用php进行地理编码来获取某个地方的经度和纬度坐标 [英] how can I get the longitude and latitude coordinates of a place using php for geocoding

查看:84
本文介绍了我如何使用php进行地理编码来获取某个地方的经度和纬度坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用php从给定地址($ street,$ barangay,$ city和$ province)获取经度和纬度坐标.

I want to get the longitude and latitude coordinates using php from the given address ($street, $barangay, $city and $province).

推荐答案

您可以使用url:

http://maps.googleapis.com/maps/api/geocode/json?address=YOUR_ADDRESS

它是免费的.

您将获得json编码形式的数据,其中包含lat&长

You will get data in json encoded form which contain lat & long

这篇关于我如何使用php进行地理编码来获取某个地方的经度和纬度坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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