Unknown cities

1 view
Skip to first unread message

Ashley

unread,
Jun 16, 2010, 5:32:50 AM6/16/10
to Google Maps JavaScript API v3, ca...@surek.co.uk
Hi

We are having issues with a function on a site in development.


Route planner
http://wblive.host365.com
If you enter Cambridge as one of the destinations or departure points,
nothing happens. Preston to London is fine, Swansea to London fine but
Cambridge to London - nada... ie: many places fine but it appears that
the odd town is not recognised.

Any help greatly appreciated.

Thanks
Ashley

pi5701

unread,
Jun 16, 2010, 5:43:42 AM6/16/10
to Google Maps JavaScript API v3
try 'cambridge uk' ;)

Ashley

unread,
Jun 16, 2010, 9:38:06 AM6/16/10
to Google Maps JavaScript API v3
Nice - thank you!. Any idea how we get it always defaulting to uk
without user adding UK afterwards?

On Jun 16, 10:43 am, pi5701 <pistol...@chello.at> wrote:
> try 'cambridge uk' ;)

finco

unread,
Jun 16, 2010, 2:29:04 PM6/16/10
to Google Maps JavaScript API v3
Not a maps answer but you can always validate the string - if the
ending does not end with UK, United Kingdom, England, etc., modify the
string that's submitted.

pi5701

unread,
Jun 16, 2010, 2:31:24 PM6/16/10
to Google Maps JavaScript API v3

Ashley

unread,
Jun 17, 2010, 11:14:44 AM6/17/10
to Google Maps JavaScript API v3
Many thanks to both of you - that sorted it.

Regards
Ashley

On Jun 16, 7:31 pm, pi5701 <pistol...@chello.at> wrote:
> guess this should do the trick:http://code.google.com/intl/de-DE/apis/maps/documentation/javascript/...
Reply all
Reply to author
Forward
0 new messages