struct Gmaps::DirectionResult

Included Modules

Defined in:

gmaps/direction_result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(geocoded_waypoints : Array(Gmaps::GeocodedWaypoints), routes : Array(Gmaps::Route)) #

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

[View source]

Instance Method Detail

def build_static_map(size : String = "640x640") #

use the StaticMap class to get a static map of the routes


[View source]
def fetch_static_map(size : String = "640x640", format : String = "png", api_key : String | Nil = nil) #

[View source]
def geocoded_waypoints : Array(GeocodedWaypoints) #

[View source]
def routes : Array(Route) #

[View source]