dolibarr 21.0.0-beta
GoogleAPI Class Reference

Class to manage Google API. More...

Public Member Functions

 __construct ($db, $key)
 Constructor.
 
 getGeoCoordinatesOfAddress ($address)
 Return geo coordinates of an address.
 

Detailed Description

Class to manage Google API.

Definition at line 28 of file google.class.php.

Constructor & Destructor Documentation

◆ __construct()

GoogleAPI::__construct ( $db,
$key )

Constructor.

Parameters
DoliDB$dbDatabase handler
string$keyGoogle key

Definition at line 51 of file google.class.php.

Member Function Documentation

◆ getGeoCoordinatesOfAddress()

GoogleAPI::getGeoCoordinatesOfAddress ( $address)

Return geo coordinates of an address.

Parameters
string$addressAddress Example: 68 Grande rue Charles de Gaulle,+94130,+Nogent sur Marne,+France Example: 188, rue de Fontenay,+94300,+Vincennes,+France
Returns
string Coordinates

Definition at line 66 of file google.class.php.

References $conf, dol_strlen(), and getURLContent().


The documentation for this class was generated from the following file: