tp TouchPointWP Geo - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Geo
A standardized set of fields for geographical information.
- Class name: Geo
- Namespace: \tp\TouchPointWP
- Parent class: stdClass
Properties
lat
public mixed lat = null
- Visibility: public
lng
public mixed lng = null
- Visibility: public
human
public mixed human = null
- Visibility: public
type
public mixed type = null
- Visibility: public
Methods
__construct
mixed tp\TouchPointWP\Geo::__construct(?float lat, ?float lng, ?string human, ?string type)
- Visibility: public
Arguments
- lat ?float* lng ?float* human ?string* type ?string
Returns
- mixed
distance
float tp\TouchPointWP\Geo::distance(float latA, float lngA, float latB, float lngB)
Get distance between two geographic points by lat/lng pairs. Returns a number in miles.
- Visibility: public
- This method is static.
Arguments
- latA float* lngA float* latB float* lngB float
Returns
- float -