2011-08-16 17 views

答えて

20

GoogleマップジオコーディングAPIを使用してこれを行うことができます。以下の例を見てください。しかし、緯度経度と郵便番号と一緒に完全な住所を渡す必要がある住所を修正する。詳細については

下のリンクをクリックしてください:

http://code.google.com/apis/maps/documentation/geocoding/

<?php 
$url ="http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false"; 
$result = simplexml_load_file($url); 
print"<pre>"; 
print_r($result); 
?> 
+1

を私が持っている非常に具体的なものを、必要に応じて'https://maps.googleapis.com/maps/api/geocode/json?address = SW5 + 0RQ&sensor = false&components = country:UK'という言葉がよく使われます。 – Gajus

関連する問題