The accuracy threshold when geocoding U.S. locations is set to 7 or 8, meaning that addresses with just zip codes or with street level accuracy are not geocoded.

(Accuracy levels are described here: http://googlemapsapi.blogspot.com/2006_07_01_googlemapsapi_archive.html)

This patch changes the threshold level to 5 and above, so that zip codes will get geocoded more accurately than relying on the zip code tables, which have some errors.

CommentFileSizeAuthor
location.us_.inc_.patch547 bytesmcarbone

Comments

mcarbone’s picture

Status: Active » Needs review
owen barton’s picture

I agree that this is a good change - it would be great if this was a setting, ideally separate settings for users and each content type.

With organic groups especially, it is very useful to be able to set a low value here and still get a useful geocoding for just a city name, for example (a group might not have an actual street address). For physical events, however we only want street level geocoding, to prevent map-following confusion :)

bdragon’s picture

Component: Code » Data update

Changing component to Data update.

catch’s picture

Version: 4.7.x-1.x-dev » 5.x-2.7
bdragon’s picture

Version: 5.x-2.7 » 6.x-3.x-dev
Status: Needs review » Fixed

Looks like HEAD's version will accept 3 or above.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.