On Jun 24, 10:39 am, "[email protected]" <[email protected]>
wrote:
> On Jun 24, 9:35 am, fraser1980 <[email protected]> wrote:
>
> > I have implemented a map with directions to a fixed location on a site
> > I am building. The problem is, directions are only returned for
> > specific 'from' locations. ie. if I enter 'Croydon', directions are
> > pulled back fine, but if I enter 'Camberley' nothing is returned.
> > Inputting 'Camberley, Surrey' does however give me directions.
>
> > Is there any way to handle these instances?
>
> Listen for an "error" event from your GDirections:
>
> http://code.google.com/apis/maps/documentation/reference.html#GDirect...
>
> and act on it however you determine is appropriate.

The issue with Camberley is that GDirections doesn't understand it.
If I pre-geocode Camberley, it picks Camberley, Laguna Niguel, CA
92677, and doesn't know how to cross the Atlantic to get to Croydon:
http://www.geocodezip.com/example_geo2.asp?addr1=Croydon&addr2=Camberley&geocode=1&geocode=2

Start:
Found 1 results
[ 0 ]: Croydon, Greater London, UK (51.3723608, -0.1004015)
End:
Found 1 results
[ 0 ]: Camberley, Laguna Niguel, CA 92677, USA (33.504481,
-117.712744)

  -- Larry

>
>   -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to