Skip to content Skip to sidebar Skip to footer

Scary Javascript-keys Returned From Google Maps P[$a, Ab]

I declared a location from google maps by clicking the map. The data is stored like this: P{ $a: -20.55231336577107 ab: -72.3388671875 } It's uncanny, why are they not just us

Solution 1:

Google's Javascript is minified to reduce bandwidth costs.

This replaces all meaningful names with very short names, to save additional space.

Solution 2:

Ditto with the other 2 answers. This is the entire reason why there's a fully documented API. Instead of accessing the object variables directly. Use the accessor methods built into the API like .lat() and .lng() on a google.maps.LatLng object.

Solution 3:

The API code is optimized with the closure compiler

Post a Comment for "Scary Javascript-keys Returned From Google Maps P[$a, Ab]"