How to implement the geo location autocomplete on searching similar to what foursquare official website do?

StackOverflow https://stackoverflow.com/questions/19811259

I am trying to build my android app with foursquare api, It works fine by using their api foursquare search venue with "near" parameter and the value "Paris".

But before calling this link, I want to have an autocomplete textbox to help users for searching, however I couldn't find any api to do this. (their suggestcompletion api need to pass the location/geoname as well, that's not what I want)

In their official website / official mobile app, their autocomplete is extremely good. It accepts country name, district name or even a venue name.

Does anyone knows how to do it?

有帮助吗?

解决方案

Finally I found that I need to use a webservice from geonames to do the autocomplete, and then use it result to pass the lat and lng to foursquare.

A reference from foursquare link, they use this geonames dataset too.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top