Bump api_version to 3 in car.lua
This commit is contained in:
@@ -53,7 +53,7 @@ Feature: osrm-extract lua ways:get_nodes()
|
||||
"""
|
||||
functions = require('testbot')
|
||||
|
||||
function way_function(profile, way, result, location_data)
|
||||
function way_function(profile, way, result, relations, location_data)
|
||||
assert(location_data)
|
||||
for k, v in pairs(location_data) do print (k .. ' ' .. tostring(v)) end
|
||||
result.forward_mode = mode.driving
|
||||
@@ -83,7 +83,7 @@ Feature: osrm-extract lua ways:get_nodes()
|
||||
"""
|
||||
functions = require('testbot')
|
||||
|
||||
function way_function(profile, way, result, location_data)
|
||||
function way_function(profile, way, result, relations, location_data)
|
||||
assert(location_data)
|
||||
print('ISO3166-1 ' .. (location_data['ISO3166-1'] or 'none'))
|
||||
result.forward_mode = mode.driving
|
||||
|
||||
Reference in New Issue
Block a user