EHC Club Manager
distance.php File Reference

Functions

 getPlaceId ($address, $apiKey)
 

Variables

 $apiKey = "AIzaSyAfKfsOw_2cm6xSggpz9CD3BusIpB7y5EM"
 
 $origin_place_id = "Place ID: ChIJPTLhA8bfvkcRVzQUhiQh2rY"
 
 $destination_place_id = "Place ID: ChIJ0WB6olK_uEcRNeYJRjfypm4"
 
 $origin = "Uckendorfer Straße 135, 53844 Troisdorf"
 
 $destination = "Margaretenstraße 17/19, 47055 Duisburg"
 
 $originPlaceId = getPlaceId($origin, $apiKey)
 
 $destinationPlaceId = getPlaceId($destination, $apiKey)
 
if($originPlaceId && $destinationPlaceId) else
 

Function Documentation

◆ getPlaceId()

getPlaceId (   $address,
  $apiKey 
)

Variable Documentation

◆ $apiKey

$apiKey = "AIzaSyAfKfsOw_2cm6xSggpz9CD3BusIpB7y5EM"

◆ $destination

$destination = "Margaretenstraße 17/19, 47055 Duisburg"

◆ $destination_place_id

$destination_place_id = "Place ID: ChIJ0WB6olK_uEcRNeYJRjfypm4"

◆ $destinationPlaceId

$destinationPlaceId = getPlaceId($destination, $apiKey)

◆ $origin

$origin = "Uckendorfer Straße 135, 53844 Troisdorf"

◆ $origin_place_id

$origin_place_id = "Place ID: ChIJPTLhA8bfvkcRVzQUhiQh2rY"

◆ $originPlaceId

$originPlaceId = getPlaceId($origin, $apiKey)

◆ else

if ( $originPlaceId &&$destinationPlaceId) else
Initial value:
{
echo "Fehler beim Abrufen der Place IDs."