zearth
zearth

Reputation: 151

Limit to 1 result for Google Map Places search box

I want to limit to 1 result for this sample API from Google.

I know I can limit it by restricting the array, but currently sometimes if I limit it, the result is not totally accurate: if the result array has 2 or more items, the first result in the array is not the place I was searching and if I look in the 2 or 3 more results, it's in that place that I was searching.

Is there a way to limit it by one but it shows the accurate place among other array item results?

Thanks.

Upvotes: 0

Views: 914

Answers (1)

zearth
zearth

Reputation: 151

never mind I already found the answer on this link, thanks again (thx dda for editing my post)

https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/autocomplete.html?r=290

Upvotes: 1

Related Questions