Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
geocode.php
07-06-2020, 01:06 PM,
#1
geocode.php
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.
Reply
07-06-2020, 06:20 PM,
#2
RE: geocode.php
Sending the request in my browser I get the following:

   

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
Reply
07-07-2020, 11:49 AM,
#3
RE: geocode.php
Open street maps? ... Have not heard of that one, I'll have to give it a look.
Reply
07-07-2020, 04:20 PM,
#4
RE: geocode.php
Hi Paul, you can find it here:

https://www.openstreetmap.org

Tim
Reply
07-10-2020, 10:59 AM, (This post was last modified: 07-10-2020, 11:02 AM by TurboPT.)
#5
RE: geocode.php
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.
Reply
07-24-2020, 11:49 AM,
#6
RE: geocode.php
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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)