nearby cities

50 views
Skip to first unread message

bistake

unread,
Jul 21, 2011, 10:12:48 AM7/21/11
to google-map...@googlegroups.com
Hello,

I built a form with autocomplete but I can not see the nearby cities that included. Can you help me?

This's the page:

thank's

Rossko

unread,
Jul 21, 2011, 3:38:18 PM7/21/11
to Google Maps JavaScript API v3
> I built a form with autocomplete but I can not see the nearby cities that
> included. Can you help me?

What are you expecting to happen?

bistake

unread,
Jul 22, 2011, 3:02:54 AM7/22/11
to google-map...@googlegroups.com
view the city closest to the one selected within 10km.

As I point out the nearest towns of miles?

Rossko

unread,
Jul 22, 2011, 10:36:34 AM7/22/11
to Google Maps JavaScript API v3
> view the city closest to the one selected within 10km.

Ah okay, that is not what the autocomplete example does. It shows
things spelled a bit like the text entered so far, doesn't relate to
distance from any starting point.

If you want to find things within a distance of some point, you could
do something like
http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html

bistake

unread,
Jul 23, 2011, 3:19:31 AM7/23/11
to google-map...@googlegroups.com
It 'can be done using only the API V3?

Rossko

unread,
Jul 23, 2011, 5:29:39 AM7/23/11
to Google Maps JavaScript API v3
> It 'can be done using only the API V3?

No.
The Google Places API
http://code.google.com/apis/maps/documentation/places/
is the nearest tool for finding 'things within a radius', but its more
about businesses and facilities than 'cities'.

This old post might help
http://groups.google.com/group/google-maps-api/browse_thread/thread/744e480ad9a25b33/db2c02e3bf6fe816

If what you really want to know is 'where is this point', have you
looked at reverse geocoding?
Reply all
Reply to author
Forward
0 new messages