GeoSQL
in package
uses
TraitData
Read onlyYes
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- findNearbyLocations() : array<string|int, mixed>
- Radiusberechnung mit Lat/Lon
- getByTown() : array{'geoloc': string, 'geolat': float, 'geolon': float}
- Gets the correct town name and lat/lon from a search-string
- getCoordinates() : array<string|int, mixed>
- getDataInstance() : Data
- getSQLTown() : array{'geoloc': string, 'geolat': float, 'geolon': float}
Properties
$data
private
Data
$data
Methods
__construct()
public
__construct() : mixed
findNearbyLocations()
Radiusberechnung mit Lat/Lon
public
findNearbyLocations(float $nLat, float $nLon[, int $nRadius = 100 ]) : array<string|int, mixed>
Parameters
- $nLat : float
- $nLon : float
- $nRadius : int = 100
Return values
array<string|int, mixed>getByTown()
Gets the correct town name and lat/lon from a search-string
public
getByTown([string $strSearch = '' ]) : array{'geoloc': string, 'geolat': float, 'geolon': float}
Parameters
- $strSearch : string = ''
Return values
array{'geoloc': string, 'geolat': float, 'geolon': float}getCoordinates()
public
getCoordinates(array<string|int, mixed> $arr) : array<string|int, mixed>
Parameters
- $arr : array<string|int, mixed>
Return values
array<string|int, mixed>getDataInstance()
public
getDataInstance() : Data
Return values
DatagetSQLTown()
private
getSQLTown(string $strGeoLoc) : array{'geoloc': string, 'geolat': float, 'geolon': float}
Parameters
- $strGeoLoc : string