Giter Club home page Giter Club logo

openstreetmap-addressparser's Introduction

OpenStreetMap AddressParser

OpenStreetMap Address parser helps you to fetch out all addresses from OSM files that you can generate via OpenStreetMap Export tool that generates a single XML file. The file contains nodes, relations, ways and so on but this tool only goes through nodes.

Warning

As it seems there is no solid data structure for addresses in OpenStreetMap. For example in Czech republic there is a tag for country and conscriptionnumber but when you look at to London there is no country tag and the same goes for US addresses.

CHECK YOUR OSM DATA AND AMEND THIS TOOL ACCORDINGLY

Motivation

Our motivation was to have a compact set of real addresses for RentToday database that would be coherent and compact yet small enough for testing purposes. The original Pagila database contained dummy, random addresses without Lat/Lng coordinates and those could not be used for real world testing purposes.

Processing

  • Parse XML file generated to data models
  • Filter out only those nodes that contain addr:city tag, presumably all address nodes contains addr:city but it might not be true in your case
  • Convert address tags and lat/lng coordinates to a single compact object
  • Export to CSV/Json

Side note

OpenStreetMap Export tool link leads to Bangor, Maine also know as Derry, Maine, city of many stories of Stephen King

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.