PHP 클래스 LatLng, UK-Postcodes

파일 보기 프로젝트 열기: pezholio/UK-Postcodes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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