localvore-today / react-mapbox-autocomplete

MIT License
15 stars 17 forks source link

Allow access to the complete Place object returned from Mapbox Api #10

Open gtona opened 6 years ago

gtona commented 6 years ago

Hello, thank you for releasing this component. It's great. One thing that would really help, is if you can expose the full Mapbox response place object, because there are a lot of other properties in the response that could be useful in addition to result, lat, lng, text.

For ex, the _suggestionSelect could also return the Mapbox place in case we need any additional properties.

_suggestionSelect(place, result, lat, lng, text) {
  console.log(place, result, lat, lng, text)
}
bakedbean commented 6 years ago

@gtona I saw that you submitted a PR for this change, but closed it. Did you decide you don't want/need this change?