GeoQuery
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
withLocale(string $locale)
No description
withLimit(int $limit)
No description
withData(string $name, mixed $value)
No description
getText()
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
static GeoQueryInterface
fromCoordinates(float $latitude, float $longitude)
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
at line 62
static GeoQuery
create(string $text)
No description
at line 72
GeoQuery
withText(string $text)
No description
at line 96
GeoQueryInterface
withLocale(string $locale)
No description
at line 108
GeoQueryInterface
withLimit(int $limit)
No description
at line 121
GeoQueryInterface
withData(string $name, mixed $value)
No description
at line 131
getText()
No description
at line 139
Bounds|null
getBounds()
No description
at line 147
string|null
getLocale()
No description
at line 155
int
getLimit()
No description
at line 166
mixed
getData(string $name, mixed|null $default = null)
No description
at line 178
array
getAllData()
No description
at line 193
static GeoQueryInterface
fromCoordinates(float $latitude, float $longitude)
No description
at line 203
GeoQueryInterface
withCoordinates(Coordinates $coordinates)
No description
at line 213
Coordinates
getCoordinates()
No description
at line 223
string
__toString()
String for logging. This is also a unique key for the query