Don't use those undocumented properties of the LatLng object. Instead, use
their documented lat() and lng() methods.

e.g. if you have a LatLng object in a variable named latlng, you can do
this:

    alert(
        'Lat: ' + latlng.lat() +
        ', Lng: ' + latlng.lng()
    );

-Mike

On Mon, Mar 28, 2011 at 12:46 PM, leccmo <[email protected]> wrote:

> Hello,
>
> I have been struggling to figure out the name of value of Lat and Lng.
>
> When I get LatLng object from direction service, they should be like
> this:
> lat: 35.67726
> lng: 139.70697999999993
>
>
> But actually I get them with different name like this:
> Aa: 35.67726
> Ba: 139.70697999999993
>
> or
>
> Ca: 35.67726
> Da: 139.70697999999993
>
> or Ea: etc...
>
> Could you someone help me out how to cope with this problem? I read
> through the API reference but there is no mentions about this.
> I couldn't figure out even if it is some errors or normal. If it's
> normal, how can I know when is Aa and when is Ba etc?
>
> Any help or suggestion will be much appreciated.
>
> Thanks in advance,
>
> --
> 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.
>
>

-- 
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.

Reply via email to