add heavy caching to mapdata api

This commit is contained in:
Laura Klünder 2016-12-07 16:11:33 +01:00
parent 23da7e3605
commit 00193f7e11
22 changed files with 259 additions and 138 deletions

View file

@ -1,6 +1,6 @@
from shapely.geometry import Polygon
from c3nav.mapdata.utils import assert_multipolygon
from c3nav.mapdata.utils.geometry import assert_multipolygon
def get_nearest_point(polygon, point):

View file

@ -1,6 +1,6 @@
from matplotlib.path import Path
from c3nav.mapdata.utils import assert_multipolygon
from c3nav.mapdata.utils.geometry import assert_multipolygon
def polygon_to_mpl_paths(polygon):