geocode_exif_field() seems to be evaluating the geofield (type: text) and not the referenced field (type: image) form what i can see in my debugger.
I have no immediate need for this (admittedly cool) functionality but discovered it as part of the module testing im doing to make a release for this thing.
Anyone care to lookinto it or provide a pointer as to what might be wrong?
Attaching an image I found with GPS locative data as a reference test image. This image has been tested with exif (ubuntu) and i can confirm that lat lon data is stored in the exif.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | exif-fix.patch | 1014 bytes | michaelfavia |
| IMG_4692.jpg | 610.1 KB | michaelfavia |
Comments
Comment #1
phayes commentedDoes it work if you just call geocode('exif','/path/to/image.jpg'); ?
Comment #2
michaelfavia commentedYes: result:
Edit: this is the correct location. ;)
Comment #3
michaelfavia commentedTraced it down in the debugger.
Geocoder.module:255
Expects to be able to return $item['value'] as the path to the image but it is undefined for image fields.
The rest of the call fails as expected. Attached patch special cases the image and file. review welcome before commit. just starting to get my head around this module and might be short changing the design.
Comment #4
michaelfavia commentedNeeds review. sorry for bug spam.
Comment #5
phayes commentedI reviewed, but didn;t test. If it works then commit it!
Comment #6
michaelfavia commentedDone and done.