OpenStreetMap 로고 OpenStreetMap

Merging POIs and fixing addresses

ArtyCarty479831님이 English로 2009년 3월 25일에 게시함.

Before the recent GNIS mass load, I had created quite a few point of interest nodes for schools, churches, libraries, and fire stations in my area. Many of them, including all of the public schools, were duplicated with GNIS nodes. The JOSM node merge solved that easily where I found them. I used XAPI with wget to pull down an OSM file containing just the nodes of those types (search by amenity), which I could edit in JOSM and upload.

When I first created many of them, I put the street address in a tag because I figured it would be useful later. I couldn't find any consensus when I started on address tags, so I just put the address as one long string in a "street_address" tag. Nobody else uses it, but it was at least readable. I since found that the "addr:" namespace used in the Karlsruhe addressing system seems to fit well for these POI nodes.

I wrote a perl script to rewrite the tags. It parses the street_address tag and creates the number, street, city, state, and postal code tags, and removes the street_address tag. I had a few hundred of them, and this fixed them in short time. It probably took more time to write than fixing them by hand would have taken, but it was more fun :-)

이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

댓글을 남기려면 로그인하세요