YOLP(地図)

YDFサンプル

目次



サンプル

「東京ミッドタウン」のリバースジオコーダ検索結果

JSON形式出力

http://reverse.search.olp.yahooapis.jp/OpenLocalPlatform/V1/reverseGeoCoder?lat=35.6659183487004&lon=139.73063856875538&output=json&appid=<あなたのアプリケーションID>
{
  "ResultInfo":{
    "Count":1,
	"Total":1,
	"Start":1,
	"Latency":0.029949903488159,
	"Status":200,
	"Description":"",
	"Copyright":"Copyright (C) 2010 Yahoo Japan Corporation."
  },
  "Feature":[
    {"Property":{
      "Country":{"Code":"JP","Name":"\u65e5\u672c"},
      "Address":"\u6771\u4eac\u90fd\u6e2f\u533a\u8d64\u5742\uff19\u4e01\u76ee",
      "AddressElement":[
        {"Level":"prefecture","Code":"13","Name":"\u6771\u4eac\u90fd"},
        {"Level":"city","Code":"13103","Name":"\u6e2f\u533a"},
        {"Level":"oaza","Code":"","Name":"\u8d64\u5742"},
        {"Level":"aza","Code":"","Name":"\uff19\u4e01\u76ee"}
      ]
    }
  }]
}

XML形式出力

http://reverse.search.olp.yahooapis.jp/OpenLocalPlatform/V1/reverseGeoCoder?lat=35.6659183487004&lon=139.73063856875538&appid=<あなたのアプリケーションID>
<?xml version="1.0" encoding="UTF-8"?>
<YDF firstResultPosition="1" totalResultsAvailable="1" totalResultsReturned="1" xmlns="http://olp.yahooapis.jp/ydf/1.0">
  <ResultInfo>
    <Count>1</Count>

    <Total>1</Total>
    <Start>1</Start>
    <Latency>0.032848119735718</Latency>
    <Status>200</Status>

    <Description />
    <Copyright>Copyright (C) 2010 Yahoo Japan Corporation. All Rights Reserved.</Copyright>
  </ResultInfo>
  <Feature>
    <Property>

      <Country>
        <Code>JP</Code>
        <Name>日本</Name>
      </Country>
      <Address>東京都港区赤坂9丁目</Address>

      <AddressElement>
        <Level>prefecture</Level>
        <Code>13</Code>
        <Name>東京都</Name>

      </AddressElement>
      <AddressElement>
        <Level>city</Level>
        <Code>13103</Code>
        <Name>港区</Name>

      </AddressElement>
      <AddressElement>
        <Level>oaza</Level>
        <Code />
        <Name>赤坂</Name>

      </AddressElement>
      <AddressElement>
        <Level>aza</Level>
        <Code />
        <Name>9丁目</Name>

      </AddressElement>
    </Property>
  </Feature>
</YDF>