Reputation: 4612
I need autocomplete functionality for both street anems and buinesses. the geoCoder from the location package is not giving me what i need. I checked the google labs Places JSON API but the responses from that request gives u only places names and ID not the lat long, for that you need an extra response which might make it slower to show auto completed location on map.
Is there any other api that a response should contain Boh the names and the last\long (take into account that i will not have ncessarily lat long for the request itself since i might be looking for places in a very remote place that is not related to my current location.
Upvotes: 1
Views: 803
Reputation: 4612
This is what I've found through much searching:
Basically the JSON API for places API from google has two functionalities, one to search for locations and one for autocomplete, both hidden in the LABS code under PLACES API. To make it worth the while:
This is pretty much what the Javasciript API gives you in a more convenient manner. You can always use a WebView with maps api java script and a map and pass on callbacks to the WebView JS using android JavaScriptInterfaces.
Upvotes: 1