It seems to me that the viewport supplied with the Local Search
webservice response data seems to be miscalculated. Given that this is
not a new area, I'm skeptical that it's a bug, but wanted to post here
in case there was some syntax misunderstanding on my part.

Here is the lat/long data of my 4 results, along with the (partial)
google viewport, followed by what _I_ would think the viewport would
be:

result0: 41.416439, -73.40173
result1: 41.452957, -73.401636
result2: 41.215906, -73.722456
result3: 41.224212, -73.43222

GoogleViewport:
viewport =         {
            ne =             {
                lat = "41.42205";
                lng = "-73.39233";
            };
            sw =             {
                lat = "41.354706";
                lng = "-73.505196";
            };

Whereas I would think:
NE would be max lat and max lng (41.452957, -73.401636)
SW would be mins: (41.215906, -73.722456)
and from that, span and center are calculated...and MAYBE there is
some % of padding added so that the items aren't on the edge of the
viewport.

but as you can see, the NE lat in the supplied viewport is too far
south (clear error), and the longitude is too far east (potentially
padding). Similarly, SW (supplied) is too far north (clear error) and
too far east (clear error)

Thanks for any help you can provide.

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-ajax-search-api?hl=en.

Reply via email to