mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add node grids for tests and test for interpolation update
This commit is contained in:
@@ -196,6 +196,15 @@ class OSMDataFactory(object):
|
||||
|
||||
return scene
|
||||
|
||||
def clear_grid(self):
|
||||
self.grid = {}
|
||||
|
||||
def add_grid_node(self, nodeid, x, y):
|
||||
self.grid[nodeid] = (x, y)
|
||||
|
||||
def grid_node(self, nodeid):
|
||||
return self.grid.get(nodeid)
|
||||
|
||||
|
||||
def before_all(context):
|
||||
# logging setup
|
||||
|
||||
Reference in New Issue
Block a user