Hi there.
I was wondering if it is possible to get the location module to geocode an address even though only a city field is specified. (Center the map to the center of the city. Or even when a street name is given and not the street address, center the map to the center of the street?).
Is this possible to do that by lowering the accuracy & how can the accuracy be lowered?
Any help would be much appreciated,
Cheers Nash

Comments

nevets’s picture

Look in modules/location/supported/location.us.inc for the function location_geocode_us_google() and the line

if ($accuracy_code != 8 && $accuracy_code != 7) {

Change the test to allow for a lowet accuracy code (my memory says you want to allow down to 5).
Note you will need at least city and state.

bdragon’s picture

Status: Active » Fixed

This works in 3.x, it allows accuracy down to 3.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

summit’s picture

Is this also working for other countries like france or italy?
Thanks a lot in advance for your answer!
greetings,
Martijn