Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
Possible Bug in Geocoder?

 

 


northernpenguin
User

Aug 16, 2011, 1:39 PM

Post #1 of 8 (2768 views)
Shortcut
Possible Bug in Geocoder? Can't Post

I'm using the latest version of the Geocoder plugin with CMSB 2.08. Everything works great except for one anomaly!

When I add Sidney, BC to the Geocoder, it display Sidney, Australia instead (lat & long are for Aus).

Any ideas?
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke


Dave
Staff / Moderator


Aug 16, 2011, 4:44 PM

Post #2 of 8 (2764 views)
Shortcut
Re: [northernpenguin] Possible Bug in Geocoder? [In reply to] Can't Post

Hi northernpenguin,

You can set a "bias" for the region in the top of the plugin. Just replace this line:

// two-letter ccTLD, eg: us, GB, ref: http://code.google.com/apis/maps/documentation/javascript/basics.html#Region
//$GLOBALS['GEOCODER_REGION'] = 'us';

With this:
// two-letter ccTLD, eg: us, GB, ref: http://code.google.com/apis/maps/documentation/javascript/basics.html#Region
$GLOBALS['GEOCODER_REGION'] = 'CA';

Can you let me know if that makes a difference? If not we'll have to do some more digging. :)

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


northernpenguin
User

Aug 16, 2011, 7:34 PM

Post #3 of 8 (2756 views)
Shortcut
Re: [Dave] Possible Bug in Geocoder? [In reply to] Can't Post

Dave: No joy! I still get Sydney, AUS (-34.0232131, 150.8223535).

http://bc.aircadetleagueofcanada.ca/maps.php

Very weird, especially that if I do go to maps.google.com, Sidney BC is displayed correctly.

Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke


Dave
Staff / Moderator


Aug 16, 2011, 8:03 PM

Post #4 of 8 (2754 views)
Shortcut
Re: [northernpenguin] Possible Bug in Geocoder? [In reply to] Can't Post

Ragi,

Can you email me CMS & FTP login details to dave@interactivetools.com and I'll have one of our guys debug it. Note: Email, don't post login details to the forum.

My first guess is there's a weird character or something in there that is throwing off google maps. We'll have to see, though.

Dave Edis - Senior Developer
interactivetools.com
 


northernpenguin
User

Aug 17, 2011, 7:32 AM

Post #5 of 8 (2701 views)
Shortcut
Re: [Dave] Possible Bug in Geocoder? [In reply to] Can't Post

Dave: I emailed you the info. BTW, I tried inputting "Sydney, NS" and it worked.

Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke


Dave
Staff / Moderator


Aug 17, 2011, 2:21 PM

Post #6 of 8 (2673 views)
Shortcut
Re: [northernpenguin] Possible Bug in Geocoder? [In reply to] Can't Post

Hi Ragi,

I think the problem is that google can't map this address:
http://maps.google.ca/maps?q=1979+de+Havilland+Dr.,+Sidney,+BC,+V8L+5V5

You can see what the Google Maps API returns directly here:
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=1979+de+Havilland+Dr.,+Sidney,+BC,+V8L+5V5

Is it possible there's a different address? I've gotten this one a few times:
1979 Anson Dr, North Saanich, BC V8L 5V5

Let me know what you think or if you can find an address the returns a result at maps.google.com.

Thanks!

Dave Edis - Senior Developer
interactivetools.com
 


northernpenguin
User

Aug 17, 2011, 2:38 PM

Post #7 of 8 (2668 views)
Shortcut
Re: [Dave] Possible Bug in Geocoder? [In reply to] Can't Post

Dave: this is very weird!

I checked in Canada Post (postal code finder), and when I input

1979 DE HAVILLAND WAY
SIDNEY BC

I get the foll postal code:

V8L 5V5

Could it be an error in Google Maps? How can I report it to Google?

Ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke


Dave
Staff / Moderator


Aug 17, 2011, 6:05 PM

Post #8 of 8 (2636 views)
Shortcut
Re: [northernpenguin] Possible Bug in Geocoder? [In reply to] Can't Post

Hi Ragi,

It could be an error with google maps. You can report errors here: http://maps.google.com/support/bin/answer.py?hl=en&answer=98014

I actually did that once before and it can take some time to get updated.

In the meantime you might want to see if you kind find an alternate address that works.

Let me know if there's anything else I can do to help.

Dave Edis - Senior Developer
interactivetools.com