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

Geocoder tool #92

Open
gregallensworth opened this issue May 15, 2018 · 4 comments
Open

Geocoder tool #92

gregallensworth opened this issue May 15, 2018 · 4 comments

Comments

@gregallensworth
Copy link
Member

Client wants a simple address-search tool, which zooms the map and that's it.

Chris had some good work on something even more complex #81 This would do the geocode, then apply a filter to find crashes within a circle of that address. This need is significantly simpler, but the code in PR 81 may provide guidance as to UI and behavior.

@gregallensworth gregallensworth self-assigned this May 15, 2018
@clhenrick
Copy link
Collaborator

clhenrick commented May 18, 2018

@gregallensworth just FYI I was using Google Map's Geocoder and from what I hear their APIs are no longer "free" and require an API Key and credit card, but yes I believe the React Redux integration should be a good starting point. Maybe a good alternative Geocoder would be Mapbox's? But not sure if that means you have to also use a Mapbox Basemap...

FYI the NYC Planning Dept has it's own free geocoder, and the team at NYC Planning Labs has built an service for it that has auto-complete: http:https://geosearch-docs.planninglabs.nyc/

This last option might be worth using as certain NYC addresses are notoriously difficult to geocode, e.g. places in Queens that have 4 streets in the same 1 block radius that share the same name but differ in their suffix.

@gregallensworth
Copy link
Member Author

Yeah, the Google changeup is significant, for a large number of people. Our usual go-to when not using Google is Bing, as their TOU are very open: "must be used in a web map"

But, that's really good information that there exists a NYC-specific geocoder. Thank you for the tip here.

@clhenrick
Copy link
Collaborator

No problem, I went ahead and integrated it with an auto-suggest component in the branch clh/geocoding. It's data is stored in the redux state.search. The saved search result just needs to be piped down to the map component. Some more css & ux tweaking is probably warranted as well.

@clhenrick
Copy link
Collaborator

Update: over the weekend I got the selected geocode result to display on the map. We could either leave it at that or add the ability to filter by radius to the geocode result. I started working on the latter, probably won't be too much effort.

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

3 participants