oppoudel / react-geocoder

Geocoder Component using arcgis-rest-js & downshift
https://geocoder.ompoudel.com/
6 stars 3 forks source link

suggest > geocode #1

Closed jgravois closed 6 years ago

jgravois commented 6 years ago

greetings! 👋 very cool project!

you'd probably generate even better results from our geocoding service if you used suggest() instead of geocode() for your partial strings.

a bounding box filter (instead of tacking on "Baltimore, Md" manually) could improve output too.


suggest("123 Mai", {
  params: { searchExtent: [-77,40,-75,38] } 
})

it'd require that you actually geocode() candidates once they've been selected, but that approach has worked quite well in https://github.com/Esri/esri-leaflet-geocoder.

either way, i'd like to link to this project from the rest-js doc. would that be okay with you?

oppoudel commented 6 years ago

Thank you for the suggestion. I will try it out. Sure, you can link it from rest-js docs.

jgravois commented 6 years ago

thanks so much and keep up the great work! 🎉

oppoudel commented 6 years ago

Made the suggested changes on last commit.

jgravois commented 6 years ago

excellent! you're our very first In the wild example.