webERP Forum
geocode.php - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: geocode.php (/showthread.php?tid=8404)



geocode.php - daveparrish - 07-06-2020

I have not used geocode.php for a while and know there has been changes to the way the api works.
 I have a Google API Key and activated and tested and work fine.
 I have changed the baseurl to  https:'' on line 40
 I also changed line 52 to $request_url = $base_url . $address . ',&sensor=false';
also change line 104 to $request_url = $base_url . $address . ',&sensor=false';
but keep getting error REQUEST_DENIED
I think it is to do with the Key not being added to the base url.
Any help would be greatly appreciated.


RE: geocode.php - TimSchofield - 07-06-2020

Sending the request in my browser I get the following:

[attachment=1035]

which appears to be saying that I need to pay for it??

It would be nice to move to using open street maps for this. Does anybody have experience using it?

Tim


RE: geocode.php - TurboPT - 07-07-2020

Open street maps? ... Have not heard of that one, I'll have to give it a look.


RE: geocode.php - TimSchofield - 07-07-2020

Hi Paul, you can find it here:

https://www.openstreetmap.org

Tim


RE: geocode.php - TurboPT - 07-10-2020

Looked at some of that information, Tim.  (There's quite a bit of information)

Is it the Leaflet that would be the desired way to go, if you already have some insight?
I was looking at their information here.

Not sure if we need tiles, or simple lat/long. I've not used the geocoding within webERP myself, so not sure what that may have looked like previously.


RE: geocode.php - daveparrish - 07-24-2020

Sorry for the late reply I do have a google account that is paid for I think it is to do with the google setup because it works with vendors and customer location it just will not work to update the gps coordinates for customers or vendors I changed the script to just one customer and one vendor and get the same issue.
Thanks