DistanceInterface
interface DistanceInterface
Methods
getFrom()
Get the origin coordinate
getTo()
Get the destination coordinate
in(string $unit)
Set the user unit
string
getUnit()
Get the user unit
withData(string $name, mixed $value)
No description
mixed
getData(string $name, mixed|null $default = null)
No description
haversine()
No description
Details
at line 14
DistanceInterface
setFrom(CoordinatesInterface $from)
Set the origin coordinate
at line 21
CoordinatesInterface
getFrom()
Get the origin coordinate
at line 30
DistanceInterface
setTo(CoordinatesInterface $to)
Set the destination coordinate
at line 37
CoordinatesInterface
getTo()
Get the destination coordinate
at line 46
DistanceInterface
in(string $unit)
Set the user unit
at line 53
string
getUnit()
Get the user unit
at line 61
DistanceInterface
withData(string $name, mixed $value)
No description
at line 69
mixed
getData(string $name, mixed|null $default = null)
No description
at line 71
haversine()
No description