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

Steepest streets. #18

Open
6 tasks done
vr00n opened this issue Apr 5, 2018 · 6 comments
Open
6 tasks done

Steepest streets. #18

vr00n opened this issue Apr 5, 2018 · 6 comments

Comments

@vr00n
Copy link
Member

vr00n commented Apr 5, 2018

Placeholder to tackle later.

https://twitter.com/latimes/status/981597314270859264?s=20

How to submit an issue?

  • Have you checked previously open/closed issues to see if your question has already been asked & addressed?
    • If there is an open issue similar to your issue. Comment on that open issue with additional detail indicating that you too are having the same issue. This allows the project sponsor to prioritize incoming issues.
  • Have you provided a clear description of your issue so that the project sponsor is able to answer all your questions with as few back-n-forths as possible?
  • (Please acknowledge by checking this box) If a screenshot or visual helps better communicate some complex idea, have you provided one?. Draw.io, Lucidchart, and Autodraw are some excellent and quick drawing tools.
  • (Please acknowledge by checking this box) When an issue is resolved, please post the steps to resolution or clearly describe the resolution before marking the issue closed.
    • This will help future SOLVERS read through how your issue was solved and may help them solve their issue quicker.
  • Have you been kind, courteous, and considerate in your questions?
  • Have you considered using Stackedit.io, a handy tool to quickly write in markdown?
@jazzzchan
Copy link
Collaborator

if this issue is opened to tackle the slope problem. From OSMnx there are two methods to calculate the slope(elevation degree) .

  1. Elevation between nodes
  2. Grades (ratio of elevation / edges length) between edges.

For this problem solely I think elevation between nodes is enough but really depends on what this issue is trying to solve?

@ywnch
Copy link
Collaborator

ywnch commented Apr 9, 2018

would be interesting to see what data Google used

2018-04-09 17 23 45

@jazzzchan
Copy link
Collaborator

They (Google earth) use Grade % calculation by the way

@vr00n
Copy link
Member Author

vr00n commented Apr 10, 2018

Google Maps has something called Elevations API . -
https://developers.google.com/maps/documentation/elevation/start

BUT

there is an OPEN source alternative! https://open-elevation.com/

ALSO run the below on http://overpass-turbo.eu/ a querying engine for Open Street Maps. These are individual users adding the inclination tag to a few streets only.

[out:json][timeout:45];
(
  way["incline"]({{bbox}});
);
out body;
>;
out skel qt;

It would be amazing if we are able to contribute to Open Street Maps by automatically attaching inclination information based on the Open Elevation API.

OSM definition of Key=Incline
https://wiki.openstreetmap.org/wiki/Key:incline

@patwater
Copy link

This is so cool! Glad you all are exploring this :)

@vr00n
Copy link
Member Author

vr00n commented Apr 10, 2018

POC:

  1. For every OSM way (how a street segment is represented in OSM jargon) get the lat/long of start-node and end-node
  2. Compute elevation of start-node via https://api.open-elevation.com/api/v1/lookup?locations=lat,long
  3. Compute elevation of end-node via https://api.open-elevation.com/api/v1/lookup?locations=lat,long
  4. Calculate inclination grade.
  5. Output top-5 steepest in radroads.py

  1. Submit to OSM - https://wiki.openstreetmap.org/wiki/Automated_edits

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

No branches or pull requests

4 participants