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