Proximity Search results for Germany not working

13 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 6, 2016   (RSS)

By Damon - May 23, 2016

Hi Jerry,

I was able to recreate the issue and found the solution. What was happening was the Zipcode from Germany was getting treated like a US zip code and was geocoding based on that. 

The solution is the open up your geocoder.php plugin file.

Go to line 32 and comment out this line like this:

  //'postcode/zipcode/zip/address',

You will need to re-geocode the address from Germany (delete the Latitude and Longitude values and save).

Let me know if this works for you.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By gkornbluth - May 31, 2016

Thanks Damon,

I didn't get an email telling me that this thread had been updated, sorry for the delay in responding.

I'll give it a try tomorrow morning and report back.

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gkornbluth - May 31, 2016

Hi Damon,

Works like a charm...

Thanks again!

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gkornbluth - May 31, 2016

Hi Damon,

There's still one thing about all this that still confuses me.

I can enter a Canadian or a US Postal Code and the proximity results come out correctly.

How would I enter a German Postal Code (or any other Country's code that has the same format as the US or Canadian codes)  and have the proximity results come out correctly?

Thanks again,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Damon - June 2, 2016

Hi Jerry,

Google's Geocoding API typically does a good job of guessing what region you want results from when there are ambiguities in the search.

So being in North America, if we just enter a postal code, it returns results for the US or Canada, etc. The example German postal code (10117), matches a US postal code so the US location us returned. 

To get the German location, more than just the postal code will need to be entered. Adding instructions for users to enter the full address should hopefully solve the issue.

Does this work for you? Let me know if you have any other questions about this.

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By gkornbluth - June 3, 2016

Hi Damon,

Again no email about your updated post. I unsubscribed and then resubscribed to this thread so we'll see if that helps... (so please reply to this)

About the Geocoding issue:

Seems like it might be possible to enter the postal code and just the country of interest and get the correct results.

I'll do some testing and post my findings.

Thanks for pointing me in the right direction.

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Damon - June 3, 2016

Hi Jerry,

I checked the Outgoing Mail logs and the last forum notification email was sent you on 2016-06-02 at 12:25:37 PM.

Maybe that will help track it down?

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Damon - June 3, 2016

I also subscribed to this thread with my personal email and just received the forum post update so emails are being sent.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By gkornbluth - June 3, 2016

Hi Damon,

Think I may have discovered the email problem.

Could I trouble you to reply to this post?

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php