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

Prioritize low-speed streets #9

Open
jeancochrane opened this issue Aug 28, 2020 · 4 comments
Open

Prioritize low-speed streets #9

jeancochrane opened this issue Aug 28, 2020 · 4 comments
Assignees
Projects

Comments

@jeancochrane
Copy link
Owner

Related to #8, update the query and the API response to show which streets in the generated route are mellow or not. Also return which type of mellow route they are (#3).

@jeancochrane jeancochrane added this to Icebox in Launch Aug 28, 2020
@jeancochrane jeancochrane moved this from Icebox to Backlog in Launch Aug 28, 2020
@jeancochrane
Copy link
Owner Author

Let's also update the query to prioritize one-way streets.

@jeancochrane
Copy link
Owner Author

oneway alone isn't quite what we want because many large streets are actually split into two "one-way" lanes. Let's try using maxspeed as a scale factor instead.

@jeancochrane jeancochrane self-assigned this Sep 2, 2020
@jeancochrane jeancochrane moved this from Backlog to In progress in Launch Sep 2, 2020
@jeancochrane jeancochrane changed the title Update route query to return which streets are mellow Prioritize low-speed streets Sep 3, 2020
@jeancochrane
Copy link
Owner Author

Hm, the distribution of max speeds isn't promising:

mbm=# select maxspeed_forward, count(maxspeed_forward) from chicago_ways group by maxspeed_forward;

 maxspeed_forward | count  
------------------+--------
          8.04673 |     23
         16.09346 |      6
         24.14019 |      5
         32.18692 |    267
         40.23365 |    100
         48.28038 |   1125
               50 | 179682
         56.32711 |    145
         64.37384 |     30

@jeancochrane
Copy link
Owner Author

Two other tags, width and traffic_calming, also don't seem very prevalent in the data:

mbm=# select count(*) from osm_ways where tags ? 'width';
 count
-------
    56
(1 row)

mbm=# select count(*) from osm_ways where tags ? 'traffic_calming';
 count
-------
     7
(1 row)

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

No branches or pull requests

1 participant