CoolCMS API

GeocodingRequest
in package

FinalYes

Input of the advert coordinates calculation on save.

Built by AdvertRegionAddressTrait::applyCoordinates() from the advert parameters (regionId, street, zip, city, country) after the address was split by the selected municipality.

precise means the module wants a precise address (with street: cache, then Google). It is set by applyCoordinates() from the module setting geocoding.precise_address; false means the municipality center only and never Google.

Table of Contents

Properties

$city  : string
$country  : string
$languageId  : int
$postcode  : string
$precise  : bool
$regionId  : int|null
$street  : string

Methods

__construct()  : mixed
buildAddress()  : string
Address for the external geocoder: only the filled parts, comma-separated.
hasStreet()  : bool

Properties

Methods

__construct()

public __construct(int|null $regionId, int $languageId[, string $street = '' ][, string $postcode = '' ][, string $city = '' ][, string $country = '' ][, bool $precise = true ]) : mixed
Parameters
$regionId : int|null
$languageId : int
$street : string = ''
$postcode : string = ''
$city : string = ''
$country : string = ''
$precise : bool = true

buildAddress()

Address for the external geocoder: only the filled parts, comma-separated.

public buildAddress() : string
Return values
string
On this page

Search results