On 6 November 2010 23:33, Barry Hunter <[email protected]> wrote:
> Your code is just blindly taking the first placemark in the reverse
> geocoding result. It might not be the best one (but usually is from
> what I seen)
>
> You can send a viewport along with the request:
> http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GClientGeocoder.setViewport
>
> setting it to the viewport of the map usually works well, but you can
> also set it to a small bounding box (of a radius roughy the sort of
> accuracy you would like.
>

Oh, having actully tried that,
www.nearby.org.uk/google/temp/reverse-geocoding-inaccuracy.html

seems it doesnt work :(

Also tried using &bounds=48.5872,39.3723|48.5874,39.3725 on a direct
http request.

You can see it definity works on Google Maps itself, try using the
'Whats here' right click context menu. You will see that the reverse
geocoded (the RED pin) point varies with zoomlevel.

I thought I had tried it in the API too at somepoint, but at least at
the moment cant seem to get it to work.

... so the question is is this a feature request or a bug report.
(will have to investigate what happens in GMaps API v3, as that is the
only one Google are now supporting anyway)






> (this is because, rather just blindly picking the absolute closest
> result, its actully looking for the most 'prominent'. So a point near
> a village will often return a arbitary adress near the center (where
> the placename label is drawn) - really just picking the village, but
> its shown as an address level. You would think it might pick a
> arbitary address of the edge of the village, but it doesnt do that.
> So the bounding box is a good way to elevate the ranking of very close points)
>
> - Or as Andrew says if just wanting it for directions, can just pass
> coordinates the directions. It does 'absolute nearest' reverse
> geocoding automatically :)
>
>
> On 6 November 2010 20:43, graceman9 <[email protected]> wrote:
>> The problem is that geocoding is incredibly far from given points.
>>
>> Example:
>> http://ezo.org.ua/code/maps/reverse-geocoding-inaccuracy/
>>
>> There are many places around a given point, but I get very distant
>> results.
>> Can I get back really nearest point?
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Google Maps API V2" 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.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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