Class: Pickpoint::RoutingService
- Inherits:
-
Object
- Object
- Pickpoint::RoutingService
- Defined in:
- lib/pickpoint/routing.rb
Instance Method Summary collapse
- #elevation(body) ⇒ Object
-
#initialize(transport) ⇒ RoutingService
constructor
A new instance of RoutingService.
- #locate(body) ⇒ Object
- #matrix(body) ⇒ Object
- #optimized(body) ⇒ Object
- #route(body) ⇒ Object
Constructor Details
#initialize(transport) ⇒ RoutingService
Returns a new instance of RoutingService.
7 8 9 |
# File 'lib/pickpoint/routing.rb', line 7 def initialize(transport) @t = transport end |
Instance Method Details
#elevation(body) ⇒ Object
27 28 29 |
# File 'lib/pickpoint/routing.rb', line 27 def elevation(body) post("/v2/route/elevation", body) end |
#locate(body) ⇒ Object
23 24 25 |
# File 'lib/pickpoint/routing.rb', line 23 def locate(body) post("/v2/route/locate", body) end |
#matrix(body) ⇒ Object
19 20 21 |
# File 'lib/pickpoint/routing.rb', line 19 def matrix(body) post("/v2/route/matrix", body) end |
#optimized(body) ⇒ Object
15 16 17 |
# File 'lib/pickpoint/routing.rb', line 15 def optimized(body) post("/v2/route/optimized", body) end |
#route(body) ⇒ Object
11 12 13 |
# File 'lib/pickpoint/routing.rb', line 11 def route(body) post("/v2/route", body) end |