dolibarr 19.0.3
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 27 of file google.class.php.

Constructor & Destructor Documentation

◆ __construct()

GoogleAPI::__construct ( $db,
$key )

Constructor.

Parameters
DoliDB$dbDatabase handler
string$keyGoogle key

Definition at line 47 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 62 of file google.class.php.

References dol_strlen(), and getURLContent().


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