tests + instructions for map matching

This commit is contained in:
Andreas Gruß
2015-06-10 11:40:35 +02:00
committed by Patrick Niklaus
parent 5ac024788e
commit de29574314
5 changed files with 296 additions and 37 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ require 'net/http'
HOST = "http://127.0.0.1:#{OSRM_PORT}"
def request_matching trace=[], timestamps=[], options={}
defaults = { 'output' => 'json' }
defaults = { 'output' => 'json', 'instructions' => 'true' }
locs = trace.compact.map { |w| "loc=#{w.lat},#{w.lon}" }
ts = timestamps.compact.map { |t| "t=#{t}" }
if ts.length > 0