This is similar to this post

http://drupal.org/node/306054

However it appears only half the issue was fixed in beta 3, I am still getting the error "The address (physical_address) in field_gmap_cevent[0] could not be validated as correct address! Look at Maps.Google.com to check your address."

Is there a way to disable address validation error and just NOT display gmap when address doesn't geocode?

Thanks,
LStout

Comments

derhasi’s picture

Validation of the address is part of the module. But you are right there should be an option for siwtching it off. I'm not sure at the moment, if the cck_gmapaddress_fetch.module does so. I have to take a closer look on the module, but cannot do this within the next week.

ramndump’s picture

From what I can tell if you simply do not enter an address at all it will not put anything, however for those that live in the sticks, if they enter an address that doesn't geocode, they get "The address (physical_address) in field_gmap_cevent[0] could not be validated as correct address! Look at Maps.Google.com to check your address." error message. I have the display field set so that the address lines are visible in full view, so even if the map doesn't show the address txt lines will display.

Thanks for the response tho

derhasi’s picture

Status: Active » Fixed
StatusFileSize
new4.03 KB

I applied the attached patch to the module for adding your proposed functionality. Now you can select a checkbox to ignore validation. So there will be no error message but a warning message, showing the address could not be found on google maps. All Formatters but Address-Formatter will show nothing.

Commited: http://drupal.org/cvs?commit=228192

ramndump’s picture

GREAT! that works wonderfully, but I notice that you have removed fetch feature from the dev vs now. I was using it to fetch from fields. Is there anyway you could add the fetching capabilities back?

ramndump’s picture

Quick fix... I just downloaded the BETA vs and stole the fetch mod from that and it's working.

Also for those that DO NOT want the error msg showing when validation does not work, simply comment out like 279 of the cck_gmap.module file. Then there will be no error message displayed.

Thanks for this great mod!

derhasi’s picture

StatusFileSize
new4.11 KB

made some more changes, so now there is a more granular way to select a Validation mode. You can select between Set error, Show warning, Show status and Show no message.
Only Set error will force the user to enter a valid google-geocodeable address. (http://drupal.org/cvs?commit=228262)

Additionally I added fetch module again. (http://drupal.org/cvs?commit=228252)

Fixdit’s picture

I was getting this validation error problem... I updated the module so that I can set the error just not to show... but it's still not going to geocode is it?

Can someone re-assure me, or tell me what was happening? Just need a bit of clarification as I had done nothing wrong on my side?!... so was it a Google matter?

derhasi’s picture

* What adress should be geocoded?
* Is Google returning results on maps.google.xxx ?
* Did you use the current dev?

The new feature let's switch of error messages, this does not mean that any adress will be geocoded sucessfully.

Fixdit’s picture

Any address I type in that used to be geocoded, now doesn't. London, America, 1400 Main St, Santa Clara, CA 95050, United States. None work, and yet they do on http://maps.google.com. I had changed nothing previously, so it came as a surprise when this occurred. I thought upgrading would help, but it obviously hasn't.
Current Dev is the version I'm using. So what's happening here?

Fixdit’s picture

derhasi’s picture

* Do you receive any message (warning, error). If not, and error messages are switched off, switch them on please.
* Do you have a valid GMapKey set?
* Did you also test other adresses?
* Did you test on a fresh installation?
Please try to describe, when it worked, and when not.

Status: Fixed » Closed (fixed)

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