NoahSchiro / osmgraph

Convert OSM queries into graphs
https://crates.io/crates/osmgraph
MIT License
15 stars 0 forks source link

Query server flexibility #13

Closed NoahSchiro closed 1 month ago

NoahSchiro commented 1 month ago

Change the osm_query function such that users can provide their own endpoint.

NoahSchiro commented 1 month ago

Perhaps in support of this, we should abstract the query into a structure which can carry meta data / information like this. This will also allow us to set some defaults.

NoahSchiro commented 1 month ago

Features I would like on this:

Create a QueryEngine struct which contains information like the base URL we want to query.

Methods on the QueryEngine:

A few notes about how we are currently querying: