Municipality List Service
This service provides the list of municipality names of the specified prefecture in Japan. This service shares the data with Simple Geocoding Service.
Web Services act to provide single feature, applications are built by some Web Services.
Please read Terms of Use before using the services.
Service URL
The URL for this service is http://www.finds.jp/ws/municipalitylist.php .
Parameters
See also Toy Service General Specs.
- jsonp (General)
- If this is set by a function name, JSONP style documents are returned. If this is set without a function name, JSON style documents are returned.
- json (General)
- If this is set, JSON style documents are returned. The value may be set by any value or may not be set.
- php (General)
- If this is set, PHP Serialization style documents are returned. The value may be set by any value or may not be set.
- pcode
- JIS X 0401 prefecture code.
- lc
- If this is set by 'en', this service returns the alphabetical list.
Response document
Root element
The name of the root element is municipalitylist .
Response status
| Code | Description |
|---|---|
| 200 | Service finished successfully (General) |
| 400 | Service failed because of wrong parameters (General) |
| 500 | Service failed inside the server (General) |
"result" element
See also Toy Service General Specs.
result element has elements as below.
- <municipality> (may appear more than one)
- One of municipalities. This has code and name elements.
- <mcode>
- Has code of the municipality.
- <mname>
- Has name of the municipality.
Example
The response documents are written as XML document, or JavaScript or PHP programing language. Human being may be able to read not so easily.
- Hiroshima Prefecture
-
- XML
- JSONP (specified with jsonp=caller)
- JSON
- PHP Serialization
- Tokyo Metropolitan Prefecture
-
- XML
- JSONP (specified with jsonp=caller)
- JSON
- PHP Serialization
- Errors - pcode is set by 99
-
- XML
- JSONP (specified with jsonp=caller)
- JSON
- PHP Serialization
- Errors - No parameter
Acknowledgement
このサービスの作成にあたっては国土交通省の国土情報の閲覧・提供サービスサイトで公開されている「国土数値情報(行政区域データ)」を使用しました。
なお、このサービスを使用した成果物を配布または公開する際には、上記のことを提示していただければありがたく思います。

