On May 19, 11:50 am, "[email protected]" <[email protected]>
wrote:
> Hello -
>
> As you'll see from my question I'm a newbie for the google maps API,
> here you go:
> I need to create a reverse geocoding map to retrieve the latitude and
> longitude and pass them to two text fields in the same page, I started
> with the reverse geocoding example below but I'm stuck now with
> passing the latitude and longitude to the form, also is there a way
> that I can use to pass both parameters to the form fields on the fly,
> such that whenever I make a new mark on the map these parameters are
> directly changed inside the form, please help.
I think you're asking how to use place.Point.Coordinates[1] and
place.Point.Coordinates[0]. That's not a Maps question, it's an HTML/
Javascript question, so maybe you're not asking that.
If you are actually asking about Javascript, then something like
document.getElementById("myformfieldLat").value=place.Point.Coordinates
[1];
document.getElementById("myformfieldLng").value=place.Point.Coordinates
[0];
perhaps?
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---