overpass
OpenStreetMap Overpass API Lib
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-22 05:28 |
Tags
Installation
nimble install overpass
choosenim install overpass
git clone https://github.com/juancarlospaco/nim-overpass
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| overpass | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/juancarlospaco/nim-overpass |
|---|---|
| Homepage | https://github.com/juancarlospaco/nim-overpass |
| Registry Source | nimble_official |
README
nim-overpass
- OpenStreetMap Overpass API Lib, Async & Sync, with & without SSL, command line App (50Kb).

Install
nimble install overpass
Use
-
./overpass --color --lower --timeout=9 "node(1422314245)" -
The output format is automatically set to JSON,
JsonNodetype. - You must omit the
[out:json];and;out;on the Query.
Requisites
- None.
API
search*(this: Overpass | AsyncOverpass, query: string, api_url = api_main0)
thisisOverpass(timeout=int8)for Synchronous code orAsyncOverpass(timeout=int8)for Asynchronous code.queryis an overpass query,stringtype, required.-
api_urlis an overpass HTTP API URL,stringtype, optional. -
The
timeoutargument 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.proxyorAsyncOverpass.proxyofProxytype. - 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.