Geocoder Plugin - markers in incorrect position

By JeffC - September 11, 2012

Sometimes google maps gets an address/postcode location wrong. For example the position of the marker for my office is approx half a mile away from where it should be (perhaps because I am in a rural part of the country)

Google has the function to move a marker to the correct position when using google places. So now if someone puts my company name into google maps the office is shown correctly.

When using the geocoder plugin the longitude and latitude position uses googles original marker position.

Is it possible to somehow replace this with the manually positioned marker?
Jeff

Re: [Jeffncou] Geocoder Plugin - markers in incorrect position

By Jason - September 11, 2012

Hi,

By the time the points are being output to the map, all the geocoding has already been done, so there wouldn't be a simple way of reconnecting to google to retrieve points. If you're only experiencing this issue with a few records, you could manually get the lat/long of those points and put them into the CMS. Here are a few sites that can help with that:

http://www.getlatlon.com/

http://itouchmap.com/latlong.html

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] Geocoder Plugin - markers in incorrect position

By JeffC - September 11, 2012

I came up with the same solution but the problem with that approach is the cms automatically replaces my manually inputted values with the geocoded ones when the page is saved.

I think, if it is ok with you guys, I would like a refund on the plugin. It is probably easier if I revert to putting the values in manually.

Im planning to buy the newsletter plugin so the money will be coming straight back to you anyway!
Jeff

Re: [Jeffncou] Geocoder Plugin - markers in incorrect position

By Jason - September 11, 2012

Hi,

You can turn off the automatic lat/long replacement in the plugin by changing this line:
$GLOBALS['GEOCODER_AUTOSET_LAT_LNG_FIELDS'] = true;

to false.

There is the same 90 day money back guarantee on plugins that we have with CMS Builder, so you can submit a refund request if the plugin isn't meeting your needs.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] Geocoder Plugin - markers in incorrect position

By JeffC - September 12, 2012

Hi Jason

Changing:
$GLOBALS['GEOCODER_AUTOSET_LAT_LNG_FIELDS'] = true;

to

$GLOBALS['GEOCODER_AUTOSET_LAT_LNG_FIELDS'] = false;

Appears to stops any lat/long being generated. It is possible to auto generate the long/lat if the fields are empty but not to auto generate anything if I have already manually inputed the fields?
Jeff