Okay.

I have a php page with a form that when loads tries to get the geocode
or country code.


Example of code in my php page.


var thecountry = parent.showAddress(address);

How can i send a variable as GLatLng(lat, lng) so that it goes into
the function as a GLatLng.

When I declare a varible in that php page as a GLatLng variable it
doesnt recognize it.








On Apr 28, 5:24 pm, "[email protected]" <[email protected]>
wrote:
> On Apr 28, 3:49 pm, Ivan <[email protected]> wrote:> Can i use 
> GClientGeocoder to submit a GLatLng.
>
> Yes.
>
> > If there is an address then look up an xml file to get bounding box for a 
> > country.
>
> You could parse the returned placemark for "CountryName" or
> "CountryCode" then pass it back to the GClientGeocoder.  The result
> returned (if it succeeds) should include a bounding box.  I don't know
> what you mean by "then look up an xml file" but if that is code you
> are planning on writing, then of course you can...
>
> If I pass "USA" to the geocoder, I get the bounding box:
>   "ExtendedData": {
>     "LatLonBox": {
>       "north": 71.434357,
>       "south": 17.83151,
>       "east": -65.168504,
>       "west": 172.347848
>     }
>   },
>
>   -- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to