This is working as intended.
On 25 Mar 2010 08:02, "Sheepz" <[email protected]> wrote:
Hi All, I'm using Json to parse the gecode result and pass it to my
java code, where I rebuild it.
This it my JS code for parsing the result to a string:
var myJSONText = JSON.stringify(results[0], null);
it returns the following for a query about Germany:
"[
{
"types":["country","political"],
"formatted_address":"Deutschland",
"address_components":
[{"long_name":"Deutschland","short_name":"DE","types":
["country","political"]}],
"geometry":{
"location":{"b":51.165691,"c":10.451526},
"location_type":"APPROXIMATE",
"viewport":{"c":{"b":47.4430843,"c":54.6103698},"b":{"d":180,"c":
2.255725,"b":18.647327}},
"bounds":{"c":{"b":47.270127,"c":55.0815},"b":{"d":180,"c":
5.8663566,"b":15.0418536}}}
}
]"
Note the location, viewport and bounds.
These are not proper json objects and are therefore parsed in a way
that cannot be used to reconstruct the object on the java side.
The objects in question are the LatLng and the LatLngBounds objects.
Is this a bug that's going to be fixed soon?
Am i missing something in the way i parse it?
--
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]<google-maps-js-api-v3%[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.