struct Google::Maps::RouteOptimization::Location

Overview

Encapsulates a location with coordinates and optional heading

Included Modules

Extended Modules

Defined in:

maps.cr

Constructors

Instance Method Summary

Macros inherited from module Google::Resource

define(name, *fields) define, field(var, key = nil, **options, &block) field, field!(var, key = nil, **options, &block) field!, field?(var, key = nil, **options, &block) field?

Constructor Detail

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

def self.new(pull : MessagePack::Unpacker) #

Instance Method Detail

def heading : Int32 | Nil #

Compass heading (0-360, where 0 is North)


def lat_lng : LatLng #

The waypoint's geographic coordinates