You are here

function _geocoder_mapquest_nominatim_geometry in Geocoder 7

Plugin callback.

1 call to _geocoder_mapquest_nominatim_geometry()
geocoder_mapquest_nominatim in plugins/geocoder_handler/mapquest_nominatim.inc
Process Markup.

File

plugins/geocoder_handler/mapquest_nominatim.inc, line 77

Code

function _geocoder_mapquest_nominatim_geometry(&$data) {
  if (!isset($data[0]->lon)) {
    return NULL;
  }
  geophp_load();
  return new Point($data[0]->lon, $data[0]->lat);
}