Class KiiGeoPoint
Represents Geo Point.
Defined in: KiiSDK.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
KiiGeoPoint.geoPoint(latitude, longitude)
Create a geo point with the given latitude and longitude.
|
Return the latitide of this point.
|
|
Return the longitude of this point.
|
Method Detail
<static>
{KiiGeoPoint}
KiiGeoPoint.geoPoint(latitude, longitude)
Create a geo point with the given latitude and longitude.
var point = KiiGeoPoint.geoPoint(35.07, 139.02);
- Parameters:
- {Number} latitude
- Latitude of the point in degrees. Valid if the value is greater than -90 degrees and less than +90 degrees.
- {Number} longitude
- Longitude of the point in degrees. Valid if the value is greater than -180 degrees and less than +180 degrees.
- Throws:
- {String}
- Specified latitude or longitude is invalid.
- Returns:
- {KiiGeoPoint} A new reference of KiiGeoPoint.
getLatitude()
Return the latitide of this point.
getLongitude()
Return the longitude of this point.