Skip to content

Instantly share code, notes, and snippets.

@mnquintana
Last active September 15, 2015 16:06
Show Gist options
  • Save mnquintana/2d7009ea406b6377269a to your computer and use it in GitHub Desktop.
Save mnquintana/2d7009ea406b6377269a to your computer and use it in GitHub Desktop.
osmtogeojson relations issue
{
"version": 0.6,
"generator": "Overpass API",
"osm3s": {
"timestamp_osm_base": "2015-09-15T15:41:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [
{
"type": "relation",
"id": 5466069,
"members": [
{
"type": "way",
"ref": 364538449,
"role": ""
},
{
"type": "way",
"ref": 347416244,
"role": ""
}
],
"tags": {
"name": "Bass Library Entrances",
"type": "building"
}
},
{
"type": "node",
"id": 3685728420,
"lat": 41.3103714,
"lon": -72.9275906
},
{
"type": "node",
"id": 3685728421,
"lat": 41.3104313,
"lon": -72.9275477
},
{
"type": "node",
"id": 3685728422,
"lat": 41.310455,
"lon": -72.9276003
},
{
"type": "node",
"id": 3685728423,
"lat": 41.3104318,
"lon": -72.9276174
},
{
"type": "node",
"id": 3685728424,
"lat": 41.3104378,
"lon": -72.9276309
},
{
"type": "node",
"id": 3685728625,
"lat": 41.3104006,
"lon": -72.9276583
},
{
"type": "node",
"id": 470201096,
"lat": 41.3108133,
"lon": -72.9272647
},
{
"type": "node",
"id": 1528488602,
"lat": 41.3108005,
"lon": -72.9273905
},
{
"type": "node",
"id": 1528488665,
"lat": 41.3108238,
"lon": -72.9273747
},
{
"type": "node",
"id": 1528488666,
"lat": 41.3107369,
"lon": -72.9273167
},
{
"type": "node",
"id": 1528488729,
"lat": 41.3107498,
"lon": -72.9273503
},
{
"type": "node",
"id": 1528488793,
"lat": 41.3107778,
"lon": -72.9273313
},
{
"type": "node",
"id": 3537414287,
"lat": 41.310816,
"lon": -72.9273061
},
{
"type": "node",
"id": 3537414288,
"lat": 41.3108265,
"lon": -72.927299
},
{
"type": "node",
"id": 3537414290,
"lat": 41.3108385,
"lon": -72.9273647
},
{
"type": "way",
"id": 364538449,
"nodes": [
3685728420,
3685728421,
3685728422,
3685728423,
3685728424,
3685728625,
3685728420
]
},
{
"type": "way",
"id": 347416244,
"nodes": [
3537414288,
470201096,
1528488666,
1528488729,
1528488793,
1528488602,
1528488665,
3537414290,
3537414287,
3537414288
]
}
]
}
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"generator": "overpass-turbo",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.",
"timestamp": "2015-09-15T15:41:02Z",
"features": [
{
"type": "Feature",
"id": "way/364538449",
"properties": {
"@id": "way/364538449",
"@relations": [
{
"role": "",
"rel": 5466069,
"reltags": {
"name": "Bass Library Entrances",
"type": "building"
}
}
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-72.9275906,
41.3103714
],
[
-72.9275477,
41.3104313
],
[
-72.9276003,
41.310455
],
[
-72.9276174,
41.3104318
],
[
-72.9276309,
41.3104378
],
[
-72.9276583,
41.3104006
],
[
-72.9275906,
41.3103714
]
]
}
},
{
"type": "Feature",
"id": "way/347416244",
"properties": {
"@id": "way/347416244",
"@relations": [
{
"role": "",
"rel": 5466069,
"reltags": {
"name": "Bass Library Entrances",
"type": "building"
}
}
]
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-72.927299,
41.3108265
],
[
-72.9272647,
41.3108133
],
[
-72.9273167,
41.3107369
],
[
-72.9273503,
41.3107498
],
[
-72.9273313,
41.3107778
],
[
-72.9273905,
41.3108005
],
[
-72.9273747,
41.3108238
],
[
-72.9273647,
41.3108385
],
[
-72.9273061,
41.310816
],
[
-72.927299,
41.3108265
]
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment