class GeoJSON::Point

Overview

A Point is a Geometry representing a single Position in geographic space.

This class corresponds to the GeoJSON Point.

Included Modules

Defined in:

geojson/geometry/point.cr

Constructors

Instance Method Summary

Instance methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::Position)

coordinates : T coordinates

Constructor methods inherited from module GeoJSON::SingleGeometry(GeoJSON::Coordinates::Position)

new(coordinates : Array)
new(coordinates : CoordinateTree)
new(coordinates : T)
new

Instance methods inherited from class GeoJSON::Geometry

==(other : self) ==, [](*args, **options)
[](*args, **options, &)
[]
, coordinates coordinates, hash(hasher) hash

Constructor methods inherited from class GeoJSON::Geometry

new(parser : JSON::PullParser) new

Class methods inherited from class GeoJSON::Geometry

from_json(geometry_json) from_json

Instance methods inherited from class GeoJSON::Base

type : String type

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(*, longitude lon, latitude lat, altivation alt = nil) #

Creates a new Point at the given longitude, latitude, and altitude/elevation (altivation).


[View source]

Instance Method Detail

def altivation(*args, **options) #

Gets this Point's altitude/elevation.

Technically, this positional value is meant to be the height in meters above the WGS84 ellipsoid.


[View source]
def altivation(*args, **options, &) #

Gets this Point's altitude/elevation.

Technically, this positional value is meant to be the height in meters above the WGS84 ellipsoid.


[View source]
def latitude(*args, **options) #

Gets this Point's latitude in decimal degrees according to WGS84.


[View source]
def latitude(*args, **options, &) #

Gets this Point's latitude in decimal degrees according to WGS84.


[View source]
def longitude(*args, **options) #

Gets this Point's longitude in decimal degrees according to WGS84.


[View source]
def longitude(*args, **options, &) #

Gets this Point's longitude in decimal degrees according to WGS84.


[View source]
def type : String #

Gets this Point's GeoJSON type ("Point")


[View source]