Making geolocated latitude/longitude values available to computed field in Drupal 7 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!
I think I was assuming locations are geolocated on edit/changes and that's saved to DB, which appears to not be the case. At any rate, I was able to use the location ID from $field_info to load the location, which then has the lat/long data I need:

$loc = location_load_location($field_info['lid']);
$longitude = $loc['longitude'];
$latitude = $loc['latitude'];


That was annoying...