use boost program_options in osrm-prepare/routed

This commit is contained in:
Emil Tin
2013-08-19 22:41:46 +02:00
parent b80cda66a9
commit 613e38d7f8
24 changed files with 296 additions and 269 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
When /^I request locate I should get$/ do |table|
reprocess
actual = []
OSRMLauncher.new do
OSRMLauncher.new("#{@osm_file}.osrm") do
table.hashes.each_with_index do |row,ri|
in_node = find_node_by_name row['in']
raise "*** unknown in-node '#{row['in']}" unless in_node
+1 -1
View File
@@ -1,7 +1,7 @@
When /^I request nearest I should get$/ do |table|
reprocess
actual = []
OSRMLauncher.new do
OSRMLauncher.new("#{@osm_file}.osrm") do
table.hashes.each_with_index do |row,ri|
in_node = find_node_by_name row['in']
raise "*** unknown in-node '#{row['in']}" unless in_node
+1 -1
View File
@@ -1,6 +1,6 @@
When /^I request \/(.*)$/ do |path|
reprocess
OSRMLauncher.new do
OSRMLauncher.new("#{@osm_file}.osrm") do
@response = request_path path
end
end
+1 -1
View File
@@ -5,7 +5,7 @@ Then /^routability should be$/ do |table|
if table.headers&["forw","backw","bothw"] == []
raise "*** routability tabel must contain either 'forw', 'backw' or 'bothw' column"
end
OSRMLauncher.new do
OSRMLauncher.new("#{@osm_file}.osrm") do
table.hashes.each_with_index do |row,i|
got = row.dup
attempts = []
+1 -1
View File
@@ -1,7 +1,7 @@
When /^I route I should get$/ do |table|
reprocess
actual = []
OSRMLauncher.new do
OSRMLauncher.new("#{@osm_file}.osrm") do
table.hashes.each_with_index do |row,ri|
waypoints = []
if row['from'] and row['to']