Returning LatLang from a point.

35 views
Skip to first unread message

Kruug

unread,
Oct 24, 2011, 12:28:08 PM10/24/11
to google-map...@googlegroups.com
I am trying to pull the latLang data out of the geocode from the Maps API result.  I am currently unable to do this, and I'm not sure if it's because I don't know enough JavaScript, or if there's something in the Google API that I'm missing.  Any assistance would be appreciated.

Barry Hunter

unread,
Oct 24, 2011, 1:33:01 PM10/24/11
to google-map...@googlegroups.com
var weather = getWeather(myRoute.steps[i].start_location.toUrlValue());
See
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsStep
(its start_location not start_point)

And
http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng

start_location is a LatLng, so you need to get a string representation.

> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/b0QU2dK2A9cJ.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

Kruug

unread,
Oct 25, 2011, 3:24:38 AM10/25/11
to google-map...@googlegroups.com
Thank you for your assistance.  I know it's not part of the Google API, but would you be willing to check my getWeather() function?  I seem to be running into issues there as well.
Reply all
Reply to author
Forward
0 new messages