Hey Aaron- First, to clarify, the reverse geocoder will try to return a polygon that it is inside. If it is near a region but not inside the region, it will prefer to return a region that it is fully inside.
I looked through your examples. The first one looks like a data bug - like there is a fluke "East Fork" that is being returned. The second one looks like the behavior expected. It is returning the postcode that the point is inside. There may be cities near there, but I'm guessing those cities do not encapsulate the point. I'm not sure what your use case is, but it may be that you're looking for a feature to restrict to finding the nearest cities or such. You can look through the existing feature requests for the geocoder (http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype:Geocoder%20type:Enhancement&sort=-stars&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars) and file one if you'd like. - pamela On Tue, Aug 18, 2009 at 7:32 AM, Aaron Donohue<[email protected]> wrote: > > QA provided me with another example today that they ran into... > > Reverse Geocode: Lat: 38.211262 Lon: -81.782959 > Forward Geocode: Ridgeview, WV 25169, USA > > My question is, why is the address (Ridgeview, WV 25169, USA) returned > for (38.211262, -81.782959), when there are cities/towns that are > closer to (38.211262, -81.782959)? What could I do to handle this > type of problem? Should I set a threshold for ‘Accuracy’ that is > provided in the return result and implement some logic that would hide > addresses if they are not found to be above a certain level of > accuracy? What best practices do you recommend? > > > On Aug 16, 5:43 am, Damian <[email protected]> wrote: >> Hi, >> >> I am struggling the same problem - does anyone have a hint? >> >> Best, >> Damian >> >> On 28 Jul., 19:56, Aaron Donohue <[email protected]> wrote: >> >> > I am using thereversegeocoder provided in Google Maps API for Flash >> > Services and I am finding some issues withmanagingaccuracy that I >> > don’t know how to handle. I placed a marker on the map at 39.149284, >> > -89.469391 and did areversegeocode of this lat/lon to get the >> > address 'East Fork, Illinois, USA'. I then did a forward geocode of >> > that same address (East Fork, Illinois, USA) and placed another marker >> > at the lat/lon that was returned. There is roughly 40 miles between >> > these 2 points. My question is, why is the address that is returned >> > not one of the many cities/towns that is found to be closer to the >> > first marker? What could I do to handle this type of problem? Should >> > I set a threshold for ‘Accuracy’ that is provided in the return result >> > and implement some logic that would hide addresses if they are not >> > found to be above a certain level of accuracy? What best practices do >> > you recommend? >> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
