No description
Find a file
Juan Carlos aa63fdc4a0
Merge pull request #1 from sgmihai/patch-1
replace rand with sample
2023-07-21 21:21:25 -03:00
.github Create FUNDING.yml 2019-05-26 02:47:05 -03:00
src replace rand with sample 2023-07-22 02:30:45 +03:00
.gitignore Initial commit 2018-08-22 23:11:10 -03:00
LICENSE Initial commit 2018-08-22 23:11:10 -03:00
osm.jpg Update readme 2018-08-23 03:55:04 -03:00
overpass.nimble 0.20.0 2019-06-06 14:55:37 -03:00
README.md Update readme 2018-11-01 21:03:27 -03:00

nim-overpass

OpenStreetMap

Install

  • nimble install overpass

Use

  • ./overpass --color --lower --timeout=9 "node(1422314245)"

  • The output format is automatically set to JSON, JsonNode type.

  • You must omit the [out:json]; and ;out; on the Query.

Requisites

  • None.

API

search*(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.

  • The timeout argument is on Seconds.

  • OpenStreetMap API limits the length of all key and value strings to a maximum of 255 characters.

  • For Proxy support define a Overpass.proxy or AsyncOverpass.proxy of Proxy type.

  • No OS-specific code, so it should work on Linux, Windows and Mac. Not JS.

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 FMT strings module.