Thank you VERY much!
I strip Ir. from the address, and everything works fine. No errors and
the address is found.
Greetings,
Hans
On Nov 26, 1:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Nov 26, 2:47 am, Hans <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I get an error loading gdirections with an address that cannot be
> > found. I want to be able to handle the error.
> > Javascript:
> > directs0.load("from: 9231ht NL to: Ir. C.M. van der Slikkeleane 2
> > 9041CH Berlikum NL")}
>
> http://www.geocodezip.com/example_geo2.asp?addr1=9231ht%20NL&addr2=Ir...
>
> The Geocoder doesn't seem to understand "Ir."
>
> http://www.geocodezip.com/example_geo2.asp?addr1=9231ht%20NL&addr2=In...
>
> When that happens the JSON response that comes back to the Geocode
> request is bad:
> _xdc_._2fnzwwdee && _xdc_._2fnzwwdee({
> "name": "Ir. C.M. van der Slikkeleane 2 9041CH Berlikum NL",
> "Status": {
> "code": 602,
> "request": "geocode"
> }
>
> }
>
> http://www.geocodezip.com/example_geo2.asp?APIV=2.136d&addr1=9231ht%2...
>
> in version 2.136d of the API. v=2.x (v2.138f) and v=2 (2.137c) work
> for
> me:http://www.geocodezip.com/example_geo2.asp?APIV=x&addr1=9231ht%20NL&a...
>
> IE gets very confused when that happens. FF seems to be OK with it.
>
> -- Larry
>
> > }
>
> > When running this, i get an IE popup that says: "Line 1 error:
> > expected identifier string or number".
> > And i do not see any of the alerts 'l' , 'e', or 'c'.
> > So , i think the event listener for error does not execute, and also
> > the catch-block is not executed. It looks like IE 6.0 just stops the
> > script after the error-popup.
> > How can i keep the script running, after .load of an address that
> > cannot be found?
>
> > Greetings,
> > Hans
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---