Skip to content
Sitemason - Build on Us

SMLocation Class Reference

Methods

getAddress1

(string) getAddress1()
A string
6.0

Information

Returns the "address1" property of the Location.

getAddress2

(string) getAddress2()
A string
6.0

Information

Returns the "address2" property of the Location.

getCity

(string) getCity
A string
6.0

Information

Returns the "city" property of the Location.

getCoordinatesInDecimalDegrees

(string) getCoordinatesInDecimalDegrees ()
A string
6.0

Information

Returns the latitude and longitude of the Location in decimal degrees separated by a comma.

	

echo $myLocation->getCoordinatesInDecimalDegrees();

// prints "36.166667,-86.783333"

getLatitude

(string) getLatitude ()
A string
6.0

Information

Returns the "latitude" property of the Location.

getLongitude

(string) getLongitude ()
A string
6.0

Information

Returns the "longitude" property of the Location.

getState

(string) getState()
A string
6.0

Information

Returns the "state" property of the Location.

getZip

(string) getZip()
A string
6.0

Information

Returns the "zip" property of the Location.