Yahoo地図のリバースジオコーダ
緯度経度から住所を返してくれるリバースジオコーダ(逆ジオコーダ?)は、たぶんほかのサービスにも裏から使えそうなのがありそうだけれど、ヤフーのはG-XML準拠になっているらしい。
こんなかんじでした。
POST /geo/lonlat2address HTTP/1.1
Host: map.yahoo.co.jp
<query><coordinates>35/39/38.650,139/42/29.732</coordinates></query>
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<gxml:G-XMLdata xmlns="http://www.dpc.or.jp/gxml" xmlns:gml="http://www.opengis.net/gml" xmlns:gxml="http://www.dpc.or.jp/gxml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dpc.or.jp/gxml gxm3.1/G0XMLdata.xsd">
<gxml:spatialLocator>
<gxml:AddressString>
<gxml:unstructuredAddressString>東京都渋谷区神宮前5丁目</gxml:unstructuredAddressString>
<gxml:AddressItem level="1">東京都</gxml:AddressItem>
<gxml:AddressItem level="2">渋谷区</gxml:AddressItem>
<gxml:AddressItem level="3">神宮前</gxml:AddressItem>
<gxml:AddressItem level="4">5丁目</gxml:AddressItem>
</gxml:AddressString>
<GovernmentCode>13113015005</GovernmentCode>
</gxml:spatialLocator>
</gxml:G-XMLdata>
About this entry
You’re currently reading “Yahoo地図のリバースジオコーダ,” an entry on ku
- Published:
- 2006.11.27 / 8pm
- Category:
- geo

No comments
Jump to comment form | comments rss [?] | trackback uri [?]