Closed (fixed)
Project:
Geocoder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2012 at 20:09 UTC
Updated:
4 May 2012 at 07:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jeff h commentedThis was easier to add than I thought — your code is nice and easy to read :)
Patch attached.
Comment #2
phayes commentedThis patch looks perfect
Comment #3
jeff h commentedActually it isn't quite perfect :)
I had to modify the above patch very slightly — I discovered that Google can't geocode when it's given regions which are codes.
For example, Dunedin New Zealand is in a region called Otago, which has a region code of OTA. Google can't geocode "Dunedin, OTA, NZ" but geocodes perfectly when given "Dunedin, Otago, NZ" (or even just "Dunedin, NZ").
The following fixed the above patch for me. Instead of:
+ if (!empty($field_item['province'])) $address .= $field_item['province'] . ',';...it needs to be:
Comment #4
phayes commentedjeff h,
Can you re-roll your patch with the above change?
Comment #5
phayes commentedThis is now committed. Thanks!
Comment #6
phayes commentedComment #7
jeff h commentedHey, sorry I didn't get a chance to do this. Thanks for the git attribution! :)