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

Snap to roads #193

Closed
peptoni opened this issue Jun 21, 2015 · 17 comments
Closed

Snap to roads #193

peptoni opened this issue Jun 21, 2015 · 17 comments

Comments

@peptoni
Copy link

peptoni commented Jun 21, 2015

Would it be possible in the future to enable snap to roads in route drawing...? Even the free option looks attractive.

https://developers.google.com/maps/documentation/roads/snap
https://developers.google.com/maps/documentation/roads/

Thanks for a beautiful work!!!

@peptoni
Copy link
Author

peptoni commented Jun 21, 2015

I know Google requires a license...

For openstreetmap (THE open way to go...) there is this project:

http://project-osrm.org

@peptoni
Copy link
Author

peptoni commented Jun 21, 2015

Here is a demo of the osrm engine. It's very quick, can retrace in real time if you add points.

http://map.project-osrm.org

This is the service/function used, I think:

https://github.com/Project-OSRM/osrm-backend/wiki/Server-api#service-match

@vitalidze
Copy link
Owner

I think it is possible. Looks like this one https://github.com/Project-OSRM/osrm-backend/wiki/Server-api#service-match suits the needs of snapping of points loaded from archive. Also from my understanding their demo server may be used without any restrictions (see https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy for more info). I will put this feature to my roadmap.

@vitalidze
Copy link
Owner

Thanks for sharing information 👍

@peptoni
Copy link
Author

peptoni commented Jun 21, 2015

Thank YOU for this fantastic work, and for listening!!!

@dudek-marcin
Copy link
Contributor

Big +1 for this!

vitalidze added a commit that referenced this issue Jul 14, 2015
@vitalidze
Copy link
Owner

Implemented basic snapping to roads function, written news and article, updated latest and demo versions.

vitalidze added a commit that referenced this issue Jul 14, 2015
…ent of 'getPositions' method to conform to the current signature (updated in scope of #193)
@peptoni
Copy link
Author

peptoni commented Jul 14, 2015

Just downloaded and installed the new version, but "snap to roads" is not working for me... I see the same straight lines between points... Am I doing something wrong...? I am on a Amazon EC2 virtual machine... Should I have to open some ports for this to work...?

@vitalidze
Copy link
Owner

Lines will be same 'straight' lines. Just the points are snapped for now.

@peptoni
Copy link
Author

peptoni commented Jul 14, 2015

OK!

@vitalidze
Copy link
Owner

Actually I am still thinking about a better way of implementation, maybe will move this to the client side. Right now server makes requests and returns 'snapped' points to the client. Same OSRM service returns the line in some binary format as well, but I doubt it will pass through the GWT RPC. That's why I am thinking about calling of the OSRM service directly from the web browser after positions are loaded from the server side.

@peptoni
Copy link
Author

peptoni commented Jul 14, 2015

Sounds good to me!

@peptoni
Copy link
Author

peptoni commented Jul 14, 2015

This implementation would allow also to snap during the following of a vehicle, real time.

vitalidze added a commit that referenced this issue Aug 5, 2015
@ghost
Copy link

ghost commented Nov 19, 2015

Hello,

In French interface "snap to road" is not so close to road :( (Latest version).

@vitalidze
Copy link
Owner

@waca98 First of all, please do not post your issues on the closed threads. Open new instead.

Related your case with French, I was not able to reproduce it. It works for me in exactly same way as it does for English. Please submit a new issue with the track attached (in GPX format, just do the export).

@ramlaxmanrimal
Copy link

Snap to road cannot work on chrome, Is there any compatibility issues?

@vitalidze
Copy link
Owner

@ramlaxmanrimal please don't post questions in old threads. As for your question find discussion here #387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants