ProjectSidewalk / SidewalkWebpage

Project Sidewalk web page
http://projectsidewalk.org
MIT License
84 stars 24 forks source link

Filter labels based on route #2768

Open yeisenberg opened 2 years ago

yeisenberg commented 2 years ago
Brief description of problem/feature

Is it possible to filter labels based on a route? so user enters an origin and destination like on Google Maps and the route shows up and only the labels on that route show up. Another step on top of that would be choosing the potential side of the street with the lower number of barriers? are either of these possible? the latter seems more involved but wondering if there is some easy code to integrate google routes into the label results map?

misaugstad commented 2 years ago

Is it possible to filter labels based on a route? so user enters an origin and destination like on Google Maps and the route shows up and only the labels on that route show up

I'm actually not sure what Google's routing API looks like or what it outputs, but at first glance this doesn't seem like it would be that difficult to do.

Another step on top of that would be choosing the potential side of the street with the lower number of barriers? are either of these possible?

This is definitely more involved, though I don't think that it would be too difficult to approximate? We talk about differentiating between sides of the street a bit in #1154

yeisenberg commented 2 years ago

Neat, that would be great to look into. I think many people will find that valuable. Glad to hear you are thinking of the sidewalk side! Are the labels linked to the street center line?

jonfroehlich commented 2 years ago

Yes, labels are "linked" to street ids. But also have their own lat/longs.

On Fri, Jan 21, 2022 at 12:01 PM yeisenberg @.***> wrote:

Neat, that would be great to look into. I think many people will find that valuable. Glad to hear you are thinking of the sidewalk side! Are the labels linked to the street center line?

— Reply to this email directly, view it on GitHub https://github.com/ProjectSidewalk/SidewalkWebpage/issues/2768#issuecomment-1018818721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAML55PCQIOCPTWE5ILWP6DUXG3P7ANCNFSM5MN3G5LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Jon E. Froehlich https://jonfroehlich.github.io/ (he/him https://www.mypronouns.org/he-him) | @jonfroehlich https://twitter.com/jonfroehlich Associate Professor, Allen School of Computer Science & Engineering https://www.cs.washington.edu/ Director, Makeability Lab https://makeabilitylab.cs.washington.edu/ | Assoc. Director, CREATE http://create.uw.edu/ | Faculty Chair, MHCI+D https://mhcid.washington.edu/ Help make sidewalks more accessible: http://projectsidewalk.org

misaugstad commented 2 years ago

The labels just have a latitude and longitude right now, so they aren't specifically linked to the center of the street. Though they are linked to a street based on the ID as Jon said.

yeisenberg commented 2 years ago

Got it! so if the google route API works, it could filter based on those street IDs. Would an effort to create a sidewalk line layer be useful? like at least for testing this out? at one point i had started something like that for the City of Chicago with a class a while back

yeisenberg commented 2 years ago

Also - recalling that Fabio and the PhD student he worked with worked on sidewalk line files in Chicago. perhaps he can share those?

misaugstad commented 2 years ago

Also - recalling that Fabio and the PhD student he worked with worked on sidewalk line files in Chicago. perhaps he can share those?

Ah yes, that sounds great!