Skip to content

tp TouchPointWP Geo

James K. edited this page May 7, 2024 · 1 revision

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 -
Clone this wiki locally