I'm working on a D7 project where I need to pass a latitude/longitude value from a Location field (acquired from geolocating during import) to a Computed field.
I found the following code in the computed field documentation, which loads the field into the computed field:
$field_info = array_pop(field_get_items($entity_type, $entity, 'field_geo'));
However, if I do a
dpm($field_info); all location information is there, EXCEPT lat/long.
Any way around this? Thanks!