[Geomoose-users] geocode address 2.6 RC1 status

Johan Forsman Johan.Forsman at LA.GOV
Tue Jun 4 05:33:14 PDT 2013


I might be a tad late to the party here, but I just now took a stab at investigating this issue because I need the geocode function.

Using Firebug I inspected the request sent by the geocoder function and noticed the URL looked really off, and when I took the URL and trimmed out the "off-looking" bits I received good results. I also noticed it was a POST request, and the previous GM version used a GET request.

I saw a post in a discussion forum regarding the Google geocoder, which mentioned that POST requests are automatically urlencoded.

In geocode.php, around line 40 (count may be less as I added the debug bits at the top) there is this instruction:

$request_url = $url . "&q=" . urlencode($streetaddress);

I changed the line to read

$request_url = $url . "&q=" . $streetaddress;

which appears to allow the geocoder to function as in previous versions.

Take care,
Johan.

From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz
Sent: Monday, April 16, 2012 9:40 AM
To: geomoose-users at lists.osgeo.org
Subject: [Geomoose-users] geocode address 2.6 RC1 status

Hello,

I noticed that Geocoding addresses does not appear to work out of the box for Geomoose 2.6 RC1.  Has anyone else noticed any problems?


Mark Volz
GIS Specialist


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130604/b0d4a330/attachment.html>


More information about the Geomoose-users mailing list