osrm-backend/features/support/config.rb
Daniel Patterson 49441fe204 Make forward/reverse weight/offset calculated at query time,
rather than being cached in the StaticRTree.  This means we
can freely apply traffic data and not have stale values lying
around.  It reduces the size of the RTree on disk, at the expense
of some additional data in RAM.
2016-03-03 10:49:12 -08:00

21 lines
282 B
Ruby

def profile
@profile ||= reset_profile
end
def reset_profile
@profile = nil
set_profile DEFAULT_SPEEDPROFILE
end
def set_profile profile
@profile = profile
end
def set_extract_args args
@extract_args = args
end
def set_prepare_args args
@prepare_args = args
end