replace simulator origin/destination generator mechanism #165
Labels
component:routing
Routing
component:simulator
Simulator component
effort:low
Needs not too much effort to accomplish this task
enhancement
New feature or request
priority:medium
This item will be prioritised over items with low priority
Currently we create origin/destination records for the simulator with randomly generated coordinates that lead to routing errors in the dispatcher.
Instead, let's generate these records with real (routable) locations. We still keep the
area
definitions andradius
, but the number will act as a max number.https://overpass-turbo.eu/ - this open API helps to extract POIs from openstreetmap data, so we can easily run queries like the following and get enough locations back:
Obviously
around
andlat/long
coordinate values will be passed as parameters.The key
amenity
seems to be quite extensively filled out (building
tag is not e.g.: in Jakarta).Query language guide here if needed to extend the above query.
POST
https://overpass-api.de/api/interpreter{ data: thatQueryStringAbove }
const { lat, lon } = response.elements[i]
The text was updated successfully, but these errors were encountered: