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

Draw a route of 10 points on the way #16

Closed
kibarik opened this issue Nov 23, 2021 · 4 comments
Closed

Draw a route of 10 points on the way #16

kibarik opened this issue Nov 23, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@kibarik
Copy link

kibarik commented Nov 23, 2021

An excellent library with excellent documentation!
The only thing missing is an example of how to build a route between N points. As a logistician, I want to build a route for the day that passes through 10 points. I could not find the implementation of this functionality in the examples. Can anyone help?

@mmomtchev
Copy link
Owner

Do you have the coordinates of those points or do you need a navigation routine?
Open source navigation is still somewhat immature, it is a very complex field with lots of quirks and a few large proprietary players
If you already have the points, you simply need to include a feature with them

@kibarik
Copy link
Author

kibarik commented Nov 23, 2021

I think to simplify it, you can take an array of 10 prepared points and show an example of drawing a route between these 10 points. Not the construction, but the rendering of the prepared route. Here is an examples of implementation on pure OpenLayers. I would like to understand how to implement this through "RLayers"

Example:
https://github.com/kolosov-sergey/webgl_blog/tree/master/ol/Route

Article (in Russian)
https://devburn.ru/2016/06/26/%D0%BF%D0%BE%D1%81%D1%82%D1%80%D0%BE%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BC%D0%B0%D1%80%D1%88%D1%80%D1%83%D1%82%D0%B0/

Full example from arcgis (build a route from A to B).
https://developers.arcgis.com/openlayers/route-and-directions/find-a-route-and-directions/

@kibarik
Copy link
Author

kibarik commented Nov 23, 2021

The main question is how to draw a straight line through RLayers using the code now. I didn't find an example in your documentation. Just a straight line between two points

There is a ready-made example on pure "OpenLayers" based on OSRM-project. Is there any way to create an example of integration with their API via RLayers?

DEMO with openlayers:
https://map.project-osrm.org/

@mmomtchev mmomtchev added the enhancement New feature or request label Nov 23, 2021
mmomtchev added a commit that referenced this issue Nov 25, 2021
@mmomtchev
Copy link
Owner

@kibarik thank you for this excellent example, even if my Russian is somewhat rusty 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants