This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Question About XML Format

1

Hi everyone,

I was looking at some XML data, trying to see if I could parse out a list of all the streets in Indiana and I saw this record.

If you look at it, it's got two name tags, "Mahogany Dr" and "Augusta Ln." How can there be two names?

Thanks

mj
<way id="17369196" version="1" timestamp="2007-12-20T12:22:13Z" uid="7168" use r="DaveHansenTiger" changeset="369054"> <nd ref="179868313"/> <nd ref="179868315"/> <nd ref="179868317"/> <nd ref="179868319"/> <nd ref="179751152"/> <nd ref="179799630"/> <tag k="highway" v="residential"/> <tag k="name" v="Augusta Ln"/> <tag k="name" v="Mahogany Dr"/> <tag k="tiger:cfcc" v="A41"/> <tag k="tiger:county" v="Johnson, IN"/> <tag k="tiger:name_base" v="Mahogany"/> <tag k="tiger:name_type" v="Dr"/> <tag k="tiger:reviewed" v="no"/> <tag k="tiger:separated" v="no"/> <tag k="tiger:source" v="tiger_import_dch_v0.6_20070810"/> <tag k="tiger:tlid" v="114652027:114652028"/> <tag k="tiger:upload_uuid" v="bulk_upload.pl-425ebe1d-919e-418d-a667-eaf6168 b1c43"/> <tag k="tiger:zip_left" v="46143"/> <tag k="tiger:zip_right" v="46143"/> </way>

asked 03 May '11, 01:32

jaskiemr's gravatar image

jaskiemr
16222
accept rate: 0%

retagged 29 Dec '17, 06:41

Wetitpig0's gravatar image

Wetitpig0
307161928

4

Where did that XML come from? I'm asking because the API returns only one name tag for that way as you can see by visiting https://www.openstreetmap.org/browse/way/17369196

(03 May '11, 05:29) petschge
2

It looks to be corrupt XML. The latter bit is from https://www.openstreetmap.org/browse/way/17395105

(03 May '11, 11:12) EdLoach ♦

I downloaded the indiana.osm file. That's where I got it from.

(03 May '11, 14:20) jaskiemr
1

@jaskiemr: Well, where did you download the file? Can't you just give us the URL?

(03 May '11, 14:30) sleske
2

@sleske a quick guess would be Cloudmade

(03 May '11, 14:42) SK53 ♦
3

You should contact cloudmade, on first glimpse it looks as if they have a problem creating the extracts

(03 May '11, 16:58) dieterdreist

Which mirror would you use in order to download Indiana roads then?

(03 May '11, 17:33) jaskiemr
showing 5 of 9 show 4 more comments

Source code available on GitHub .