Skip to content

tp TouchPointWP hasGeo

James K. edited this page May 15, 2024 · 2 revisions

tp\TouchPointWP\hasGeo

For classes that have geographic attributes, or potential geographic attributes

  • Interface name: hasGeo
  • Namespace: \tp\TouchPointWP
  • This is an interface

Methods

hasGeo

bool tp\TouchPointWP\hasGeo::hasGeo()

Indicates whether a map of a single item can be displayed.

  • Visibility: public

Returns

  • bool -

asGeoIFace

object|null tp\TouchPointWP\hasGeo::asGeoIFace(string type)

Returns a standardized stdObject, or null if not viable.

Return object properties are lat, lng, human, and type.

  • Visibility: public

Arguments

  • type string - 'loc' for navigator location, or 'ip' for ip address location

Returns

  • object|null -

locationName

?string tp\TouchPointWP\hasGeo::locationName()

Get the name of the location.

  • Visibility: public

Returns

  • ?string -
Clone this wiki locally