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.
21 lines
282 B
Ruby
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
|