GET /api/1/areas/name.json
エリアの検索結果を返却する。 U+0020(" ")やU+3000(" ")で区切られている場合、それぞれの単語でAND検索を行なう。 area のデータ型については The GeoJSON Format Specification を参照のこと。
| Key | Value | デフォルト値 |
|---|---|---|
| text | 検索する名前、部分一致を行なう | |
| page | 取得するページ番号。1 <= page | 1 |
| limit | 1ページに含む要素の数。 1 <= limit <= 100 | 100 |
GET /api/1/areas/name.json?text=%E6%96%B0%E5%AE%BF
Host: example.org Cookie: Origin:
text: 新宿
Content-Type: application/json; charset=utf-8 Set-Cookie: guest_distinct_id=5cf67e46-86cf-43d2-9b9b-e0bbb621ee65; expires=Mon, 09-Jan-2023 01:54:04 GMT THIS_IS_SESSION_COOKIE_KEY_FOR_SPEC=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTNhMmEyOTAwZTBhMTY2MzdiMzY3NDg5ZTYzOWEwYzdhBjsAVEkiGGtwaV9wcmV2X2NvbnRyb2xsZXIGOwBGSSIWYXBpL2FyZWFzI2J5X25hbWUGOwBG--da9301c4482a792eaa868716c2a5e301ea78495d; path=/; HttpOnly X-Ua-Compatible: IE=Edge,chrome=1 E-Tag: "17a575aba0b62f365b5419a2a4a08034" Cache-Control: max-age=0, private, must-revalidate X-Request: 9cf160c65eb9e57dfe4384fa5d3125de X-Runtime: 0.135471 Content-Length: 1247
200 OK
{
"total": 3,
"page": 1,
"limit": 100,
"areas": [
{
"id": 379213350,
"name": "新宿",
"created_at": "2013-01-09T01:54:03Z",
"updated_at": "2013-01-09T01:54:03Z",
"area": {
"type": "Polygon",
"coordinates": [
[
[
139.71012369481,
35.690724497113
],
[
139.70710539094,
35.696669010069
],
[
139.69981856079,
35.699131307956
],
[
139.69253173065,
35.696669010069
],
[
139.68951342677,
35.690724497113
],
[
139.69253173065,
35.684779984157
],
[
139.69981856079,
35.682317686269
],
[
139.70710539094,
35.684779984157
],
[
139.71012369481,
35.690724497113
]
]
]
}
},
{
"id": 157690714,
"name": "新宿駅",
"created_at": "2013-01-09T01:54:03Z",
"updated_at": "2013-01-09T01:54:03Z",
"area": {
"type": "Polygon",
"coordinates": [
[
[
139.69930357666,
35.692362660486
],
[
139.69818777771,
35.689434855469
],
[
139.70059103699,
35.686925222775
],
[
139.70290846558,
35.687273787593
],
[
139.70102019043,
35.692571785304
],
[
139.69930357666,
35.692362660486
]
]
]
}
},
{
"id": 571916728,
"name": "新宿伊勢丹",
"created_at": "2013-01-09T01:54:03Z",
"updated_at": "2013-01-09T01:54:03Z",
"area": {
"type": "Polygon",
"coordinates": [
[
[
139.70453924866,
35.692558715019
],
[
139.70378823013,
35.69144337614
],
[
139.70479674072,
35.69098155157
],
[
139.70536536903,
35.691948766002
],
[
139.70488257141,
35.692131751197
],
[
139.70510787697,
35.692462866196
],
[
139.70453924866,
35.692558715019
]
]
]
}
}
]
}