根据完整的邮政编码获取Lat Lon坐标(脚本转换)

时间:2013-08-31 15:36:07

标签: php geolocation postal-code

我有一个网站使用英国邮政编码lat和lon坐标,允许成员在给定距离内搜索,但这只使用基本区域(LS2,WF1等)。我想要做的是获得完整邮政编码的lon / lat坐标,以便搜索更精确。我听说你可以使用Google API执行此操作,但我不知道这是否会给我与现在相同的详细信息或如何将其合并到我的网站中。以下是现在发生的事情的简要说明:

>     User enters basic postal area into a form (LS2 for example)
>     It is then passed (with other form data) through JQuery Post to php file
>     PHP file sorts out the city, county, lon, lat information from postcodes table based on the given post area
>     + Enters the data into a table with other form data
>     Result is echoed back and user is redirected if successful

有没有办法将地理编码脚本添加到php文件中?它会获得我需要的信息吗?我也希望在英国境外工作

0 个答案:

没有答案