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
$city read-only
public
string
$city
= ''
$country read-only
public
string
$country
= ''
$languageId read-only
public
int
$languageId
$postcode read-only
public
string
$postcode
= ''
$precise read-only
public
bool
$precise
= true
$regionId read-only
public
int|null
$regionId
$street read-only
public
string
$street
= ''
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
stringhasStreet()
public
hasStreet() : bool