diff --git a/BrouterTesting.ipynb b/BrouterTesting.ipynb index 5ac7c0f..943d46c 100644 --- a/BrouterTesting.ipynb +++ b/BrouterTesting.ipynb @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": 228, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -32,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": 229, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": 230, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -1470,6 +1470,46 @@ "plot_route(start_point, end_point, human)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Should allow use of motorways if bike is explicitly allowed through OSM tagging (but still with high penalty)." + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/41.97302/-73.917906/OpenStreetMap&lonlats=-73.917906,41.97302|-73.970862,41.980039&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [-73.917906,41.97302]\n", + "end_point = [-73.970862,41.980039]\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[-73.917907,41.972859,63.0],[-73.918708,41.972862,64.5],[-73.919823,41.972858,57.75],[-73.920712,41.972840,58.75],[-73.921617,41.972869,61.0],[-73.922205,41.972862,61.25],[-73.923923,41.972870,55.0],[-73.926587,41.972862,58.0],[-73.929265,41.972869,63.75],[-73.930325,41.972905,60.0],[-73.930748,41.972952,56.75],[-73.931904,41.973141,53.5],[-73.932178,41.973216,52.25],[-73.932911,41.973381,48.0],[-73.933316,41.973513,45.0],[-73.954903,41.980627,45.0],[-73.955633,41.980840,45.0],[-73.956320,41.981006,45.0],[-73.956955,41.981120,45.0],[-73.957520,41.981208,45.0],[-73.958182,41.981261,45.0],[-73.958766,41.981286,45.0],[-73.959340,41.981284,45.0],[-73.960089,41.981251,35.0],[-73.960776,41.981168,36.75],[-73.961284,41.981119,36.25],[-73.961669,41.981071,35.5],[-73.962034,41.981008,36.5],[-73.962339,41.980945,37.5],[-73.962644,41.980864,38.0],[-73.963248,41.980683,38.0],[-73.963388,41.980629,38.0],[-73.963925,41.980418,37.5],[-73.965166,41.979919,38.75],[-73.966534,41.979368,45.0],[-73.967506,41.979086,48.75],[-73.967762,41.979044,48.75],[-73.967954,41.979026,49.0],[-73.968226,41.979032,49.0],[-73.968578,41.979056,49.25],[-73.969261,41.979122,49.5],[-73.969901,41.979169,47.25],[-73.970341,41.979223,47.75],[-73.970869,41.979271,49.25],[-73.970876,41.979743,50.0],[-73.970877,41.980038,51.0]]}}]}\n", + "plot_route(start_point, end_point, human)" + ] + }, { "cell_type": "code", "execution_count": null,