You are here

function geocoder_services_capabilities in Geocoder 7

Callback.

1 string reference to 'geocoder_services_capabilities'
geocoder_services_resources in ./geocoder.services.inc
Implements hook_services_resources().

File

./geocoder.services.inc, line 109
geocoder.services.inc

Code

function geocoder_services_capabilities() {
  geophp_load();
  $handlers = array();
  foreach (geocoder_handler_info() as $hid => $handler) {
    $handlers[$hid] = $handler['title'] . ' - ' . $handler['description'];
  }
  $object = new stdClass();
  $object->handlers = $handlers;
  $object->output = geoPHP::getAdapterMap();
  return $object;
}