tp TouchPointWP hasGeo - TenthPres/TouchPoint-WP GitHub Wiki
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 -