Home > @i2analyze/i2connect > data > createGeoPoint
data.createGeoPoint() function
Creates a data.IGeoPoint object from a pair of latitude and longitude values.
Signature:
function createGeoPoint(latitude: number, longitude: number): IGeoPoint;
Introduced: API version 2.0
Parameters
Parameter | Type | Description |
---|---|---|
latitude | number | The latitude of the geospatial point, in the range from -90 to +90 degrees. |
longitude | number | The longitude of the geospatial point, in the range from -180 to 180 degrees. |
Returns:
The new data.IGeoPoint object.
Exceptions
Error
if either latitude
or longitude
was out of range.