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

return multiple locations? #17

Closed
deckikwok opened this issue Nov 25, 2017 · 1 comment
Closed

return multiple locations? #17

deckikwok opened this issue Nov 25, 2017 · 1 comment

Comments

@deckikwok
Copy link

Is it possible to return the list of locations instead of just one?
e.g. I reckon typing in something ambiguous like 'depot' would yield many possible results? since Android geocoder api states that they return a list.

thanks!

@sebastianbaar
Copy link
Owner

Hey @deckikwok,
thanks for your request. You are right, both Android and iOS return a list of results. My intention for this plugin was to make it as easy as possible. Therefore I decided to just return the first (best) result for forward/reverse geocoding. But I see the advantage of returning multiple result sets... Mh, so what do you think. Should we alter the API and return a list of results by default for both forward and reverse geocoding. Or should we keep the API as is and add additional functions for forward/reverse geocoding with multiple results? Something like
nativegeocoder.forwardGeocodeWithResultSet(successCallback, errorCallback, addressString);
and
nativegeocoder.reverseGeocodeWithResultSet(successCallback, errorCallback, latitude, longitude);?

What are your thoughts about this?

And most important question: Would you like to help me (PR) with the Android part? ;-)

Cheers!

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

2 participants