Android Google places API GeoDataApi.getAutocompletePredictions() sorted by distance from actual location -


before that, i've used rest google places api autocomplete text view. , remember results somehow relevant actual location.

now, added new simplier api geodataapi.getautocompletepredictions() method first predictions. can't find way add sorting parameters query. moreover, must add bounds explicitly.

so, question is: there way predictions based somehow on current location, places in world? or should use another/older api this?

thank you.

currently there no way provide own sorting parameters. results sorted relevance, includes not limited distance. according geodataapi documentation, bounds provide used...

for geographically biasing autocomplete predictions.

this means when relevant, still results outside of bounds. answer question; can results on world, prefer results within bounds specify. there no way force order strictly distance, in cases thing. when types "new york" referring city or state, if thousands miles away, rather new york life office building closer.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -