struct LavinMQ::AMQP::GISFilter::Point

Overview

Represents a geographical point with latitude and longitude in decimal degrees

Defined in:

lavinmq/amqp/stream/filters/gis.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(lat : Float64, lon : Float64) #

[View source]

Class Method Detail

def self.from_headers(headers : AMQP::Table | Nil) : Point | Nil #

[View source]

Instance Method Detail

def distance_to(other : Point) : Float64 #

[View source]
def lat : Float64 #

[View source]
def lon : Float64 #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]