Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I have been working on project that utilises the computed field module to get long/latitude then using the geocorder to reverse those coordinate to the actual address on the google map. With other field i have managed except computed field.
Please find attached
Thank you
Comments
Comment #1
ebal1 CreditAttribution: ebal1 commentedComment #2
pcbudde CreditAttribution: pcbudde commentedCan you share your code used in the computed field to reverse the coordinates?
Comment #3
ebal1 CreditAttribution: ebal1 commentedI having issue like this: https://www.drupal.org/node1970288/1970288.
Its does not create point for the country or point. What i have realised is that if a field is a computed field then its used in " Geocode from field" its does not work at work but for other field work ie title and body.
Comment #4
ebal1 CreditAttribution: ebal1 commented@pcbudde even if just make something like this in :
$entity_field[0]['value'] = "POINT (-74.4602393 40.5169617)"; and its computed field , if you try to use Geocode from field to display that point nothing is showing up. I have spend sometimes on this
Comment #5
Simon Georges CreditAttribution: Simon Georges commentedDid you test the patch in #1679926: Geocoding from computed field after node edit doesn't work?
Comment #6
ebal1 CreditAttribution: ebal1 commented@Simon Georges I used that but still getting the same error
Comment #7
Simon Georges CreditAttribution: Simon Georges commentedOk, thanks for the feedback.
Comment #8
ebal1 CreditAttribution: ebal1 commented@Simon Georges i did used the patch that you suggested and follow the discussion threads, now i manage to get the geocorder working but for the first time when i create node its does not create the map, as soon as i edit it shows up everything successfully. I need to investigate the presave function.
Comment #9
Simon Georges CreditAttribution: Simon Georges commentedThat's a start! If you find what's missing on geocoder's size, we'll commit a patch. Thanks for your feedback!
Comment #10
ebal1 CreditAttribution: ebal1 commentedComment #11
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedComment #12
Pol