dolibarr  20.0.0-alpha
Public Member Functions | List of all members
GoogleAPI Class Reference

Class to manage Google API. More...

Public Member Functions

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

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.


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