class GeoQuery implements GeoQueryInterface

Properties

protected string $text

The address or text that should be geocoded.

protected Coordinates $coordinates
protected Bounds|null $bounds
protected string|null $locale
protected int $limit
protected array $data

Methods

__construct(string $text)

No description

static GeoQuery
create(string $text)

No description

withText(string $text)

No description

withBounds(Bounds $bounds)

No description

withLocale(string $locale)

No description

withLimit(int $limit)

No description

withData(string $name, mixed $value)

No description

getText()

No description

Bounds|null
getBounds()

No description

string|null
getLocale()

No description

int
getLimit()

No description

mixed
getData(string $name, mixed|null $default = null)

No description

array
getAllData()

No description

fromCoordinates(float $latitude, float $longitude)

No description

withCoordinates(Coordinates $coordinates)

No description

getCoordinates()

No description

string
__toString()

String for logging. This is also a unique key for the query

Details

at line 44
__construct(string $text)

No description

Parameters

string $text

at line 62
static GeoQuery create(string $text)

No description

Parameters

string $text

Return Value

GeoQuery

at line 72
GeoQuery withText(string $text)

No description

Parameters

string $text

Return Value

GeoQuery

at line 84
GeoQuery withBounds(Bounds $bounds)

No description

Parameters

Bounds $bounds

Return Value

GeoQuery

at line 96
GeoQueryInterface withLocale(string $locale)

No description

Parameters

string $locale

Return Value

GeoQueryInterface

at line 108
GeoQueryInterface withLimit(int $limit)

No description

Parameters

int $limit

Return Value

GeoQueryInterface

at line 121
GeoQueryInterface withData(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

GeoQueryInterface

at line 131
getText()

No description

at line 139
Bounds|null getBounds()

No description

Return Value

Bounds|null

at line 147
string|null getLocale()

No description

Return Value

string|null

at line 155
int getLimit()

No description

Return Value

int

at line 166
mixed getData(string $name, mixed|null $default = null)

No description

Parameters

string $name
mixed|null $default

Return Value

mixed

at line 178
array getAllData()

No description

Return Value

array

at line 193
static GeoQueryInterface fromCoordinates(float $latitude, float $longitude)

No description

Parameters

float $latitude
float $longitude

Return Value

GeoQueryInterface

at line 203
GeoQueryInterface withCoordinates(Coordinates $coordinates)

No description

Parameters

Coordinates $coordinates

Return Value

GeoQueryInterface

at line 213
Coordinates getCoordinates()

No description

Return Value

Coordinates

at line 223
string __toString()

String for logging. This is also a unique key for the query

Return Value

string