initial support for testing distance matrices

This commit is contained in:
Emil Tin
2015-01-01 15:12:45 +01:00
parent 0a884cc64a
commit 593808f24d
3 changed files with 62 additions and 0 deletions
+5
View File
@@ -43,6 +43,11 @@ def request_route waypoints, params={}
request_path "viaroute", waypoints, defaults.merge(params)
end
def request_table waypoints, params={}
defaults = { 'output' => 'json' }
request_path "table", waypoints, defaults.merge(params)
end
def got_route? response
if response.code == "200" && !response.body.empty?
json = JSON.parse response.body