PHP Class LatLng, UK-Postcodes

Afficher le fichier Open project: pezholio/UK-Postcodes Class Usage Examples

Méthodes publiques

Свойство Type Description
$lat
$lng

Méthodes publiques

Méthode Description
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

Method Details

LatLng() public méthode

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

OSGB36ToWGS84() public méthode

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

WGS84ToOSGB36() public méthode

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

distance() public méthode

Calculate the surface distance between this LatLng object and the one passed in as a parameter.
public distance ( $to ) : the
Résultat the surface distance

toOSRef() public méthode

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
Résultat the converted OSGB grid reference

toString() public méthode

Return a string representation of this LatLng object
public toString ( ) : a
Résultat a string representation of this LatLng object

toUTMRef() public méthode

Convert a latitude and longitude to an UTM reference
public toUTMRef ( ) : the
Résultat the converted UTM reference

Property Details

$lat public_oe property

public $lat

$lng public_oe property

public $lng