PHP Класс LatLng, UK-Postcodes

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$lat
$lng

Открытые методы

Метод Описание
LatLng ( $lat, $lng ) Create a new LatLng object from the given latitude and longitude
OSGB36ToWGS84 ( ) Convert this LatLng object from OSGB36 datum to WGS84 datum.
WGS84ToOSGB36 ( ) Convert this LatLng object from WGS84 datum to OSGB36 datum.
distance ( $to ) : the Calculate the surface distance between this LatLng object and the one passed in as a parameter.
toOSRef ( ) : the Convert this LatLng object into an OSGB grid reference. Note that this function does not take into account the bounds of the OSGB grid - beyond the bounds of the OSGB grid, the resulting OSRef object has no meaning
toString ( ) : a Return a string representation of this LatLng object
toUTMRef ( ) : the Convert a latitude and longitude to an UTM reference

Описание методов

LatLng() публичный Метод

Create a new LatLng object from the given latitude and longitude
public LatLng ( $lat, $lng )

OSGB36ToWGS84() публичный Метод

Convert this LatLng object from OSGB36 datum to WGS84 datum.
public OSGB36ToWGS84 ( )

WGS84ToOSGB36() публичный Метод

Convert this LatLng object from WGS84 datum to OSGB36 datum.
public WGS84ToOSGB36 ( )

distance() публичный Метод

Calculate the surface distance between this LatLng object and the one passed in as a parameter.
public distance ( $to ) : the
Результат the surface distance

toOSRef() публичный Метод

Convert this LatLng object into an OSGB grid reference. Note that this function does not take into account the bounds of the OSGB grid - beyond the bounds of the OSGB grid, the resulting OSRef object has no meaning
public toOSRef ( ) : the
Результат the converted OSGB grid reference

toString() публичный Метод

Return a string representation of this LatLng object
public toString ( ) : a
Результат a string representation of this LatLng object

toUTMRef() публичный Метод

Convert a latitude and longitude to an UTM reference
public toUTMRef ( ) : the
Результат the converted UTM reference

Описание свойств

$lat публичное свойство

public $lat

$lng публичное свойство

public $lng