Function __global->choose_geocoding_service

Definitions

sources/locations_geocoding.php

  • Pick which geocoding service to use.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$service ?string Yes No Null google bing mapquest N/A Force geocoding through a particular service (null: not enforced)

Returns

  • Service to use (null: no service, which should be impossible as there's always something)
  • Type: ?object
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Pick which geocoding service to use.
 *
 * @param  ?string $service Force geocoding through a particular service (null: not enforced)
 * @set google bing mapquest
 * @return ?object Service to use (null: no service, which should be impossible as there's always something)
 */

function choose_geocoding_service(?string &$service = null) : ?object