Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace simulator origin/destination generator mechanism #165

Open
sperka opened this issue Nov 23, 2022 · 0 comments
Open

replace simulator origin/destination generator mechanism #165

sperka opened this issue Nov 23, 2022 · 0 comments
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

Comments

@sperka
Copy link
Contributor

sperka commented Nov 23, 2022

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 and radius, 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:

[out:json][timeout:25];
(
  node["amenity"~"cafe|restaurant"](around:5000.0,-6.1813448922772185,106.8372344970703);
);
out body;
>;
out skel qt;

Obviously around and lat/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.


@sperka sperka added enhancement New feature or request priority:medium This item will be prioritised over items with low priority component:simulator Simulator component component:routing Routing effort:low Needs not too much effort to accomplish this task labels Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant