Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON output #17

Merged
merged 5 commits into from
May 10, 2016
Merged

JSON output #17

merged 5 commits into from
May 10, 2016

Conversation

morganherlocker
Copy link
Contributor

This PR implements tile indexing for:

  • nodes
  • ways
  • relations

The format is line-delimitted json loosely modeled after dynamosm. Example output:

{"type":"node","id":26867554,"lon":-79.9519348,"lat":32.7880476,"version":2,"timestamp":1248618911,"user":"CJack","tags":{}}
{"type":"node","id":26867559,"lon":-79.9567687,"lat":32.7856814,"version":3,"timestamp":1285073654,"user":"rickmastfan67","tags":{"highway":"traffic_signals"}}
{"type":"node","id":26867952,"lon":-79.9289094,"lat":32.7693246,"version":24,"timestamp":1247405753,"user":"CJack","tags":{}}
{"type":"node","id":26867956,"lon":-79.943063,"lat":32.7732642,"version":2,"timestamp":1247417261,"user":"CJack","tags":{}}
{"type":"way","id":4394896,"version":5,"timestamp":1379002193,"user":"maxerickson","closed":false,"node_refs":[26856907,1808058415,26856908,26856937,26856938,26856939,448231541,26856977,448231767,26856985,26856986],"tags":{"name":"Columbus Street","highway":"residential"}}
{"type":"way","id":4395058,"version":7,"timestamp":1410286120,"user":"DKNOTT","closed":false,"node_refs":[26857705,26857706,26857704,1952686814,26857707,26857703,1952658612,1952686755,26857708,1952658580,26857702,26857701,26857709,26857697,-1226231858,-1226231859,26857710,705224031,705473357,705224033,705224034,1952658396,705224035,705224036,705224037,705224038,705224039,705224041,705224042,705224043,705224021],"tags":{"name":"Belle Hall Pkwy","highway":"tertiary"}}
{"type":"way","id":4395062,"version":2,"timestamp":1272137853,"user":"westendguy","closed":false,"node_refs":[26857697,705473378,705473356],"tags":{"name":"Tea House Ln","highway":"residential"}}
{"type":"way","id":4395064,"version":4,"timestamp":1410286148,"user":"DKNOTT","closed":false,"node_refs":[-1226228851,26857700,705223861,705223863,705223864,705223865,705223866,705223867,705223868,26857742,705473379,705473380,705473381,705473355],"tags":{"name":"Fern House Walk","highway":"residential"}}
{"type":"way","id":4395955,"version":18,"timestamp":1407432406,"user":"Omnific","closed":false,"node_refs":[26867513,1808058417,26867514,26867535,100635954,26867544,459275784,26867546,459157656,459157653,-1291855488,459157801,105015830,1347363882,26867548,26867549,-1291855490,26867552,26867553,-1586784481,920224129,26867554],"tags":{"name":"Spring Street","oneway":"yes","highway":"secondary"}}
{"type":"way","id":4396091,"version":8,"timestamp":1391901143,"user":"RoadGeek_MD99","closed":false,"node_refs":[26868133,26868385,440810483,26868137,26868401,440802322,26868403,26868404,26868326,340322200,26868423,26868424,26868344],"tags":{"name":"South Battery Street","highway":"residential"}}
{"type":"way","id":4396097,"version":12,"timestamp":1393506344,"user":"RoadGeek_MD99","closed":false,"node_refs":[26867952,440707073,-1602401643,26868322,440710254,440801109,440710422,440732769,440710396,440802323,26868233,26868129,440810492,440710369,26868124],"tags":{"name":"Murray Boulevard","oneway":"yes","highway":"tertiary"}}
{"type":"relation","id":5558870,"version":1,"timestamp":1444009230,"user":"samuelestabrook","members":[{"id":373847288,"type":"way","role":"inner"},{"id":292587531,"type":"way","role":"outer"}],"tags":{"name":"Marriott Parking","type":"multipolygon","amenity":"parking","addr:city":"Charleston","addr:street":"Lockwood Drive","addr:postcode":"29401","addr:housenumber":"35"}}
{"type":"relation","id":6019784,"version":1,"timestamp":1456889135,"user":"Orionn","members":[{"id":401129768,"type":"way","role":"outer"},{"id":401129769,"type":"way","role":"outer"}],"tags":{"area":"yes","name":"Climbing Wall","type":"multipolygon"}}
{"type":"relation","id":6070504,"version":1,"timestamp":1458568704,"user":"Yoshinion","members":[{"id":404933427,"type":"way","role":"outer"},{"id":404933428,"type":"way","role":"inner"},{"id":404933429,"type":"way","role":"inner"}],"tags":{"type":"multipolygon","aeroway":"taxiway"}}
{"type":"relation","id":6070505,"version":1,"timestamp":1458568704,"user":"Yoshinion","members":[{"id":371906456,"type":"way","role":"outer"},{"id":371906455,"type":"way","role":"outer"},{"id":404933436,"type":"way","role":"outer"}],"tags":{"area":"yes","type":"multipolygon","aeroway":"runway"}}
{"type":"relation","id":6070506,"version":1,"timestamp":1458568704,"user":"Yoshinion","members":[{"id":371906455,"type":"way","role":"outer"},{"id":404933435,"type":"way","role":"outer"},{"id":404933434,"type":"way","role":"outer"}],"tags":{"area":"yes","type":"multipolygon","aeroway":"runway","surface":"concrete"}}

cc @rclark

@morganherlocker morganherlocker merged commit b2860d2 into master May 10, 2016
@morganherlocker morganherlocker deleted the json-split branch May 10, 2016 22:23
This was referenced May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant