tp TouchPointWP Interfaces hasGeo - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Interfaces\hasGeo

For classes that have geographic attributes, or potential geographic attributes


  • Full name: \tp\TouchPointWP\Interfaces\hasGeo

Methods

hasGeo

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

public hasGeo(): bool

asGeoIFace

Returns a standardized stdObject, or null if not viable.

public asGeoIFace(string $type = "unknown"): object|null

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

Parameters:

Parameter Type Description
$type string 'loc' for navigator location, or 'ip' for ip address location

locationName

Get the name of the location.

public locationName(): ?string