Contao Utils Bundle

LocationUtil
in package

Table of Contents

Constants

GOOGLE_MAPS_GEOCODE_URL  = 'https://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false'

Properties

$framework  : ContaoFrameworkInterface

Methods

__construct()  : mixed
computeCoordinatesByArray()  : array<string|int, mixed>|bool
Computes the coordinates from a given address. Supported array keys are:.
computeCoordinatesByString()  : array<string|int, mixed>|bool
Computes the coordinates from a given address. Supported array keys are:.
computeCoordinatesInSaveCallback()  : mixed
getCoordinatesFromGpx()  : array<string|int, mixed>
getCoordinatesFromKml()  : array<string|int, mixed>

Constants

GOOGLE_MAPS_GEOCODE_URL

public mixed GOOGLE_MAPS_GEOCODE_URL = 'https://maps.googleapis.com/maps/api/geocode/json?address=%s&sensor=false'

Properties

$framework

protected ContaoFrameworkInterface $framework

Methods

__construct()

public __construct(ContaoFrameworkInterface $framework) : mixed
Parameters
$framework : ContaoFrameworkInterface

computeCoordinatesByArray()

Computes the coordinates from a given address. Supported array keys are:.

public computeCoordinatesByArray(array<string|int, mixed> $data) : array<string|int, mixed>|bool
  • street
  • postal
  • city
  • country
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>|bool

computeCoordinatesByString()

Computes the coordinates from a given address. Supported array keys are:.

public computeCoordinatesByString(string $address[, string $apiKey = '' ]) : array<string|int, mixed>|bool
  • street
  • postal
  • city
  • country
Parameters
$address : string
$apiKey : string = ''
Return values
array<string|int, mixed>|bool

computeCoordinatesInSaveCallback()

public computeCoordinatesInSaveCallback(mixed $value, DataContainer $dc) : mixed
Parameters
$value : mixed
$dc : DataContainer

getCoordinatesFromGpx()

public getCoordinatesFromGpx(mixed $gpxData[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$gpxData : mixed

string The KML data

$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getCoordinatesFromKml()

public getCoordinatesFromKml(mixed $kmlData[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$kmlData : mixed

string The KML data

$options : array<string|int, mixed> = []
Return values
array<string|int, mixed>

        
On this page

Search results