Base
in package
Base Connector to get coordinates.
Table of Contents
- $url : string
- API url.
- __construct() : mixed
- Construct.
- getCoordinates() : bool|array<string|int, string>
- Function to get coordinates from base information about address.
- getCoordinatesByValue() : bool|array<string|int, string>
- Function to get coordinates from string.
Properties
$url
API url.
protected
string
$url
Methods
__construct()
Construct.
public
__construct(array<string|int, mixed> $provider) : mixed
Parameters
- $provider : array<string|int, mixed>
Return values
mixed —getCoordinates()
Function to get coordinates from base information about address.
public
abstract getCoordinates(array<string|int, mixed> $addressInfo) : bool|array<string|int, string>
Parameters
- $addressInfo : array<string|int, mixed>
Return values
bool|array<string|int, string> —getCoordinatesByValue()
Function to get coordinates from string.
public
abstract getCoordinatesByValue(string $value) : bool|array<string|int, string>
Parameters
- $value : string