Slide 11
Slide 11 text
© OpenStreetMap contributors
Web APIで任意のデータを取得出来る
例:京都市のトイレ情報を抽出して地図上に表示
JSON形式で取得出来る
{
"version": 0.6,
"generator": "Overpass API 0.7.56.7 b85c4387",
"osm3s": {
"timestamp_osm_base": "2020-08-10T15:55:02Z",
"copyright": "The data included in this document
is from www.openstreetmap.org.
The data is made available under ODbL."
},
"elements": [
{
"type": "node",
"id": 638938218,
"lat": 34.9377934,
"lon": 135.6464671,
"tags": {
"access": "yes",
"amenity": "toilets",
"male": "yes"
}
},
{
"type": "node",
"id": 727603019,
"lat": 35.0186126,
"lon": 135.6815704,
"tags": {
"access": "yes",
"amenity": "toilets",
"fee": "no",
"female": "yes",
"male": "yes",
"name": "JR嵯峨嵐山駅前公衆トイレ",
"unisex": "yes",
"wheelchair": "yes"
}
}
https://overpass-turbo.eu/
P.11