class Gmaps::App
- Gmaps::App
- Reference
- Object
Defined in:
app.crConstant Summary
-
Log =
::Log.for("app")
Constructors
Instance Method Summary
-
#api_key : String
Google Maps API key
- #ask_hospitals(hospitals : Array(Gmaps::Hospital), input : ACON::Input::Interface, output : ACON::Output::Interface) : Gmaps::Hospital | Nil
-
#client : Gmaps::Client
Client for interacting with Google Maps API
- #fetch_static_map(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult)
- #get_nearest_hospitals(coordinates : Gmaps::Locatable)
- #get_route(origin : Gmaps::Locatable, destination : Gmaps::Hospital)
- #hospital_name(hospital : Gmaps::Hospital)
- #parse_coordinates(lat : String | Nil, lng : String | Nil)
- #print_directions_adoc(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult)
- #print_result(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult)
- #print_static_map(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult)
- #puts_asciidoc_directions(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult, heading_level : Int32 = 3, io : IO = STDOUT)
-
#reporter : Gmaps::DirectionsReporter
Reporter for generating directions reports
- #run(coordinates : Gmaps::Locatable)
Constructor Detail
Instance Method Detail
def ask_hospitals(hospitals : Array(Gmaps::Hospital), input : ACON::Input::Interface, output : ACON::Output::Interface) : Gmaps::Hospital | Nil
#
def puts_asciidoc_directions(hospital : Gmaps::Hospital, direction_result : Gmaps::DirectionResult, heading_level : Int32 = 3, io : IO = STDOUT)
#