PHP地理位置(街道地址 - > Lat-Long) [英] PHP Geolocation (Street Address -> Lat-Long)

查看:92
本文介绍了PHP地理位置(街道地址 - > Lat-Long)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要某种类型的PHP thingie,以便我可以输入几个街道地址

(例如:
123 Fake Street,
Faketown,FA,
98765)
,然后它会给我这些地址的坐标(经度和纬度)。
我需要这是完全动态的(因为我将从DataBase中获取这些地址) 。



在哪里可以找到可以做到的事?

>将地址转换为纬度/经度的过程称为地理编码。我会看看Google Geocode API。



https://developers.google .com / maps / documentation / geocoding /

I need some type of PHP thingie so that I can input a few street-addresses
(such as: 123 Fake Street, Faketown, FA, 98765) and then it will give me the coordinates (latitude and longitude) of these addresses.
I need this to be completely dynamic (as I will be fetching these addresses from a DataBase).

Where can I find something that can do this?

解决方案

The process of taking an address and turning it into lat/lng is called "Geocoding". I would look at the Google Geocode API.

https://developers.google.com/maps/documentation/geocoding/

这篇关于PHP地理位置(街道地址 - > Lat-Long)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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