On Oct 22, 11:53 am, Leigh <[email protected]> wrote:
> Hi again Larry,
>
> Thanks for your patience here. Since the site is live, I didn't want
> to have that "undefined" showing up all the time as the end address.
> So I've (sadly) kludged the site a bit, so you can't see the error on
> the site. However, it's still happening. Here is a link that will
> generate a route.
>
> http://www.routeloops.com/?Base=42.3584308:-71.0597732&numWpts=4&wpt[0]=42.36926:-71.07118&wpt[1]=42.3643262:-71.088141&wpt[2]=42.3509468:-71.0874437&wpt[3]=42.3472564:-71.0699112&tM=1&len=10&unitS=1
>
> There is a cue sheet on the left, and if you look at the bottom you
> will see that it says "End:" and then gives an address. Right now, I
> am not using the end_address parameter, which is what I'm trying to
> do.
That page doesn't work in IE because of this on ~ line 237 in
RouteLoops.js
{position:elevations[item.row].location,map:map,}
The comma at the end makes it fail in IE (all versions as far as I
know).
>
> However, if you look in Firebug:
I don't have access to Firebug at the moment.
-- Larry
>
> > Check the DOM tab
> > directionsDisplay > directions > routes > 0 > legs > 0 >
> > You will see the following parameters: distance, duration, end_location,
> > start_address, start_location, steps, via_waypoint
>
> No end_address, for some reason. It's very odd.
>
> Leigh
>
> On Oct 22, 10:54 am, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On Oct 22, 5:32 am, Leigh <[email protected]> wrote:
>
> > > I agree with you. It's working for you. And if I write a small map
> > > application, it works for me too. So I must be doing something to
> > > kill it. Do you have any idea at all what I might be doing so that
> > > when I examine the response from a directionsService.route request,
> > > there is no end_address in the response object? At the moment, I have
> > > no ideas at all. (By the way, if you use Firebug or some such thing
> > > on my code, do you see the same thing?)
>
> > I didn't have time to figure out how to get your site to display a
> > route so I could see the error.
> > Do you have a link to a version of your map that exhibits the problem
> > that just displays (or attempts to display) a route?
>
> > -- Larry
>
> > > Leigh
>
> > > On Oct 21, 7:41 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Oct 21, 10:05 am, Leigh <[email protected]> wrote:
>
> > > > > Hi all,
>
> > > > > I have kind of a strange problem. Has anyone else notice this? I
> > > > > have an application (http://www.routeloops.com) that generates routes
> > > > > and cue sheets, and at one point I attempt to write out the final
> > > > > address of the route. I'm looking at
> > > > > directionsDisplay.directions.routes[0].legs[0].end_address
>
> > > > > The result keeps coming back as "undefined".
>
> > > > > Just to check, at one point in the code I have these two lines:
> > > > > alert("start " +
> > > > > directionsDisplay.directions.routes[0].legs[0].start_address);
> > > > > alert("end " +
> > > > > directionsDisplay.directions.routes[0].legs[0].end_address);
>
> > > > > The first one returns an address, and the second one returns
> > > > > "undefined".
>
> > > > > I also looked in Firebug. If I drill down on this object I see
> > > > > distance, duration, end_location, start_address, start_location,
> > > > > steps, and via_waypoint. But no end_address.
>
> > > > > Did something happen to end_address? Isn't it supposed to be there?
>
> > > > It seems to work for
> > > > me:http://www.geocodezip.com/v3_GoogleEx_directions-waypointsD.htmlhttp:...
>
> > > > -- Larry
>
> > > > > Leigh- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.