class OSRM::Request::RouteRequest
:nodoc
Constants
- ALT_PARAM
- GEO_PARAM
- OUTPUT_PARAM
- Z_PARAM
Public Class Methods
new(*locations)
click to toggle source
# File lib/osrm_api/request/route_request.rb, line 22 def initialize(*locations) locations = locations.compact.reject(&:empty?) locations.each { |item| add_param LOC_PARAM, item.split.join } end
Public Instance Methods
default_params()
click to toggle source
# File lib/osrm_api/request/route_request.rb, line 15 def default_params @default_params ||= { OUTPUT_PARAM => :json, ALT_PARAM => :false } end
service()
click to toggle source
# File lib/osrm_api/request/route_request.rb, line 11 def service :viaroute end