Skip to content

DavidKarlas/GursAddressesForOSM

 
 

Repository files navigation

Prepare addresses of Slovenia for import into OpenStreetMap

See Slovenia Address Import project description in OpenStreetMap wiki. Do NOT import anything until the process is defined and approved by community!

golangci-lint Go Report Card codebeat badge Maintainability

Steps

  1. Register as user at https://egp.gu.gov.si/egp/, wait for the email with the password, login
  2. Run GNU make in this folder (requires wget and go (>1.10))
  3. When prompted enter your credentials (they can be saved for later reuse)
  4. Wait a minute or two for processing to finish.

To manually download the data you should

  1. Register as user at https://egp.gu.gov.si/egp/, wait for the email with the password, login
  2. Expand section "2. Register prostorskih enot" / "2. Register of Spatial Units"
  3. Download the data "Prostorske enote" / "Spatial units" -> RPE_PE.ZIP and put it in the data/downloaded folder
  4. Download the data "Ulice" / "Streets" -> RPE_PUL.ZIP and put it in the data/downloaded folder
  5. Download the data "Hišne številke" / "House numbers" -> RPE_PE.ZIP and put it in the data/downloaded folder

Technical info

Encoding in source shapefiles is Windows-1250 (CP1250 in iconv), result is UTF8

Source shapefile structure is described in RPE_struktura.docx (only in Slovenian so far)

Dataset source

Data can be obtained from Geodetska uprava Republike Slovenije - https://egp.gu.gov.si/egp/ under CreativeCommons attribution license - CC-BY 4.0, attribution details in General_terms.pdf (or slovene preberi_me.pdf).

Dependancies

  1. GNU Make, bash, wget... (normal linux stuff)
  2. GoLang 1.10 or later (program is optimized as a Go learning exercise)

Similar import projects

TODO

  • Split into smaller files by areas (municipalities/občine, cities/naselja)
  • add golang gometalinter golangci-lint DONE
  • use OSM conflator source code to prepare .osc files
  • create taginfo.json
  • add taginfo.json to taginfo-projects - PR#65 - DONE
  • Find & expand abbreviated names (eg "Moravci v Slov. goricah", "Pristava pri Polh. Gradcu"). Done, see overrides folder. (Q: Add a tag with original, shortened value, like short_name?)
  • Convert bilingual postcode names "Piran - Pirano" -> "Piran / Pirano", keeping "Šmarje - Sap", "Ljubljana - Šmartno"...

About

Prepare addresses of Slovenia for import into OpenStreetMap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 61.1%
  • Shell 19.2%
  • Go 15.2%
  • Python 2.3%
  • Makefile 2.2%