Remove duplicated point in polyline encoded data

First point was outputted twice.
Add test case.
This commit is contained in:
Guillaume Beraudo
2014-06-23 15:19:27 +02:00
parent bee18dba54
commit 6ee2d1103e
3 changed files with 36 additions and 1 deletions
+3
View File
@@ -77,6 +77,9 @@ When /^I route I should get$/ do |table|
if table.headers.include? 'end'
got['end'] = instructions ? json['route_summary']['end_point'] : nil
end
if table.headers.include? 'geometry'
got['geometry'] = json['route_geometry']
end
if table.headers.include? 'route'
got['route'] = (instructions || '').strip
if table.headers.include?('distance')