PHP 클래스 OSRef, UK-Postcodes

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

공개 프로퍼티들

프로퍼티 타입 설명
$easting
$northing

공개 메소드들

메소드 설명
OSRef ( $easting, $northing ) Create a new OSRef object representing an OSGB grid reference. Note that the parameters for this constructor require eastings and northings with 1m accuracy and need to be absolute with respect to the whole of the British Grid. For example, to create an OSRef object from the six-figure grid reference TG514131, the easting would be 651400 and the northing would be 313100.
toLatLng ( ) Convert this grid reference into a latitude and longitude
toSixFigureString ( ) Convert this grid reference into a string using a standard six-figure grid reference including the two-character designation for the 100km square. e.g. TG514131.
toSplitString ( )
toString ( ) Convert this grid reference into a string showing the exact values of the easting and northing.

메소드 상세

OSRef() 공개 메소드

Grid references with accuracy greater than 1m can be represented using floating point values for the easting and northing. For example, a value representing an easting or northing accurate to 1mm would be given as 651400.0001.
public OSRef ( $easting, $northing )

toLatLng() 공개 메소드

Convert this grid reference into a latitude and longitude
public toLatLng ( )

toSixFigureString() 공개 메소드

Convert this grid reference into a string using a standard six-figure grid reference including the two-character designation for the 100km square. e.g. TG514131.
public toSixFigureString ( )

toSplitString() 공개 메소드

public toSplitString ( )

toString() 공개 메소드

Convert this grid reference into a string showing the exact values of the easting and northing.
public toString ( )

프로퍼티 상세

$easting 공개적으로 프로퍼티

public $easting

$northing 공개적으로 프로퍼티

public $northing