Merge pull request #168 from emiltin/cuke_updated_api

updated cucumber test to use loc= query params
This commit is contained in:
Project OSRM 2012-03-06 05:55:34 -08:00
commit b253721df4

View File

@ -1,7 +1,7 @@
require 'net/http'
def request_route a,b
@query = "http://localhost:5000/viaroute?start=#{a}&dest=#{b}&output=json&geomformat=cmp"
@query = "http://localhost:5000/viaroute?loc=#{a}&loc=#{b}&output=json&geomformat=cmp"
#log @query
uri = URI.parse @query
Net::HTTP.get_response uri