function _geocoder_openstreetmap_nominatim_geometry in Geocoder 7
Plugin callback.
1 call to _geocoder_openstreetmap_nominatim_geometry()
- geocoder_openstreetmap_nominatim in plugins/
geocoder_handler/ openstreetmap_nominatim.inc - Process Markup.
File
- plugins/
geocoder_handler/ openstreetmap_nominatim.inc, line 71
Code
function _geocoder_openstreetmap_nominatim_geometry(&$data) {
if (!isset($data[0]->lon)) {
return NULL;
}
geophp_load();
return new Point($data[0]->lon, $data[0]->lat);
}