Giter Club home page Giter Club logo

osm-common's Introduction

osm-common

Library for accessing OpenStreetMap services, parsing and processing data.

Best documentation is found in test cases.

API mainly include support for Nominatim, Overpass, changeset stores and osm.xml-parsing.

/** RAM-store for keeping track of OSM objects */ se.kodapan.osm.domain:Root #get(id):OsmObject #add(osmObject)

se.kodapan.osm.domain:OsmObject #getId():long #setTag(key, value) #getTag(key)

se.kodapan.osm.domain:Node extends OsmObject se.kodapan.osm.domain:Way extends OsmObject se.kodapan.osm.domain:Relation extends OsmObject

/** Create, update and delete OSM objects in a Root based on the content of an .osm.xml */ se.kodapan.osm.data.planet.parser.xml.instantiated:InstantiatedOsmXmlParser #setRoot(root) #read(xml)

/** Streaming API for processing those TB-sized osm.xml-files */ se.kodapan.osm.data.planet.parser.xml.streaming:StreamingOsmXmlParser #read(xml) #processParsedNode(node) #processParsedWay(way) #processParsedRelation(relation)

se.kodapan.osm.data.planet.changesetstore:ChangesetStore #setBaseUrl() #findFirstChangesetStateSince(timestamp) #findChangesetStatesSince(timestamp)

se.kodapan.osm.services.overpass:Overpass se.kodapan.osm.services.overpass:FileSystemCachedOverpass #execute(query):String

se.kodapan.osm.services.nominatim:Nominatim se.kodapan.osm.services.nominatim:FileSystemCachedNominatim #search(url):String

se.kodapan.osm.services.nominatim:NominatimJsonResponseParser #setRoot(root) #parse(nominatimJsonResponse):List<NominatimJsonResponseParser.Result>

se.kodapan.osm.services.nominatim:NominatimJsonResponseParser.Result #getImportance():double #getObject:OsmObject

se.kodapan.osm.services.nominatim:NominatimQueryBuilder #build():String #setBaseURL(url) #setFormat(format) #setQuery(query) #addCountryCode(iso) #setLimit(limit) ...

There is also a bit of tools surrounding this API such as filters to remove matching OsmObjects from a collection, minor distance metrics and such.

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.