overpass

OpenStreetMap Overpass API Lib


Keywords
openstreetmap, overpass, multisync, async, nim, nim-lang, overpass-api
License
MIT
Install
nimble install overpass

Documentation

nim-overpass

OpenStreetMap

Install

  • nimble install overpass

Use

  • ./overpass "node(1422314245);out;"

Requisites

  • None.

API

get*(this: Overpass | AsyncOverpass, query: string, api_url = api_main0)

  • this is Overpass(timeout=int8) for Synchronous code or AsyncOverpass(timeout=int8) for Asynchronous code.
  • query is an overpass query, string type, required.
  • api_url is an overpass HTTP API URL, string type, optional.

FAQ

  • How to Edit the OpenStreetMap using this lib ?.

You can not, Overpass is a read-only OpenStreetMap API, but optimized for read speed.

  • This works without SSL ?.

Yes.

  • This works with SSL ?.

Yes.

  • This works with Asynchronous code ?.

Yes.

  • This works with Synchronous code ?.

Yes.

  • This requires API Key or Login ?.

No.

  • This requires Credit Card or Payments ?.

No.

  • How do I build the Query string ?.

Use Nims builtin XML module or FMT strings module.