struct Gmaps::Route

Included Modules

Defined in:

gmaps/direction_result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bounds : Gmaps::GeoBounds, legs : Array(Gmaps::Leg), overview_polyline : Gmaps::Polyline) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bounds : GeoBounds #

[View source]
def distance #

[View source]
def duration #

[View source]
def legs : Array(Leg) #

[View source]
def overview_polyline : Polyline #

[View source]
def path_string(weight : Int32 = 5, color : String = "blue") #

output a path string for the route to use in google static map api


[View source]
def print_route(io : IO | String) #

[View source]