From 5773095094b90df7e64bff524ceda4d7c451d6cb Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 7 Nov 2018 09:42:04 +0100 Subject: [PATCH] Add new tests --- BrouterTesting.ipynb | 591 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 494 insertions(+), 97 deletions(-) diff --git a/BrouterTesting.ipynb b/BrouterTesting.ipynb index 93d202c..f3fb1f0 100644 --- a/BrouterTesting.ipynb +++ b/BrouterTesting.ipynb @@ -22,7 +22,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 228, "metadata": {}, "outputs": [], "source": [ @@ -32,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 229, "metadata": {}, "outputs": [], "source": [ @@ -42,12 +42,14 @@ "FORMAT = 'geojson'\n", "ALTERNATIVEIDX = 0\n", "\n", - "TILES = 'openstreetmap' # Map background is regular OSM style" + "TILES = 'openstreetmap' # Map background is regular OSM style\n", + "\n", + "BROUTER_WEB_URL = 'http://127.0.0.1:8000'" ] }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 230, "metadata": {}, "outputs": [], "source": [ @@ -63,7 +65,7 @@ " 'alternativeidx': ALTERNATIVEIDX,\n", " 'format': FORMAT\n", " }\n", - " ).json()\n", + " )\n", "\n", "def plot_route(start_point, end_point, human_geojson=None):\n", " \"\"\"\n", @@ -82,7 +84,7 @@ " tiles=TILES\n", " )\n", "\n", - " route_ref = folium.features.GeoJson(r_ref)\n", + " route_ref = folium.features.GeoJson(r_ref.json())\n", " route_ref.style_function = lambda feature: {\n", " 'color': '#666666',\n", " }\n", @@ -95,13 +97,23 @@ " }\n", " mapa.add_child(route_human)\n", "\n", - " route = folium.features.GeoJson(r)\n", + " route = folium.features.GeoJson(r.json())\n", " mapa.add_child(route)\n", " \n", " mapa.add_child(folium.Marker(list(reversed(start_point)), icon=folium.Icon(icon='play')))\n", " mapa.add_child(folium.Marker(list(reversed(end_point)), icon=folium.Icon(icon='stop')))\n", " mapa.fit_bounds(route.get_bounds())\n", " \n", + " print('%s/#map=%s/%s/%s/OpenStreetMap&lonlats=%s|%s&profile=%s' % (\n", + " BROUTER_WEB_URL,\n", + " mapa.zoom_start,\n", + " start_point[1],\n", + " start_point[0],\n", + " ','.join(str(x) for x in start_point),\n", + " ','.join(str(x) for x in end_point),\n", + " PROFILE\n", + " ))\n", + " \n", " return mapa" ] }, @@ -123,19 +135,26 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 279, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.817086/2.318587/OpenStreetMap&lonlats=2.318587,48.817086|2.239258,48.780444&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 61, + "execution_count": 279, "metadata": {}, "output_type": "execute_result" } @@ -159,19 +178,26 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 280, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.817086/2.318587/OpenStreetMap&lonlats=2.318587,48.817086|2.385181,48.842514&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 62, + "execution_count": 280, "metadata": {}, "output_type": "execute_result" } @@ -196,19 +222,26 @@ }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 282, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.843889/2.381802/OpenStreetMap&lonlats=2.381802,48.843889|2.35352,48.869487&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 64, + "execution_count": 282, "metadata": {}, "output_type": "execute_result" } @@ -229,19 +262,26 @@ }, { "cell_type": "code", - "execution_count": 65, + "execution_count": 283, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.817458/2.318759/OpenStreetMap&lonlats=2.318759,48.817458|2.345839,48.845671&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 65, + "execution_count": 283, "metadata": {}, "output_type": "execute_result" } @@ -264,19 +304,26 @@ }, { "cell_type": "code", - "execution_count": 67, + "execution_count": 265, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.761608/3.082502/OpenStreetMap&lonlats=3.082502,45.761608|3.140566,45.804334&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 67, + "execution_count": 265, "metadata": {}, "output_type": "execute_result" } @@ -297,19 +344,26 @@ }, { "cell_type": "code", - "execution_count": 68, + "execution_count": 284, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.761563/3.082502/OpenStreetMap&lonlats=3.082502,45.761563|3.089658,45.77187&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 68, + "execution_count": 284, "metadata": {}, "output_type": "execute_result" } @@ -330,19 +384,26 @@ }, { "cell_type": "code", - "execution_count": 69, + "execution_count": 285, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.617903/-1.015291/OpenStreetMap&lonlats=-1.015291,45.617903|-0.906624,45.53628&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 69, + "execution_count": 285, "metadata": {}, "output_type": "execute_result" } @@ -350,7 +411,7 @@ "source": [ "start_point = [-1.015291,45.617903]\n", "end_point = [-0.906624,45.53628]\n", - "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[-1.015299,45.617898],[-1.015202,45.617824],[-1.015071,45.617723],[-1.014541,45.617297],[-1.014236,45.617059],[-1.013942,45.616812],[-1.013920,45.616793],[-1.013464,45.616400],[-1.013190,45.616158],[-1.012561,45.615530],[-1.012438,45.615406],[-1.011751,45.614659],[-1.011207,45.614058],[-1.011079,45.613940],[-1.010710,45.613534,5.5],[-1.010565,45.613355,5.5],[-1.010235,45.612951,5.5],[-1.010085,45.612753,5.5],[-1.009900,45.612488,5.5],[-1.009813,45.612350,5.5],[-1.009740,45.612218,5.5],[-1.009672,45.612118,5.5],[-1.009629,45.612004,5.5],[-1.009536,45.611835,5.5],[-1.009455,45.611661,5.5],[-1.009329,45.611364,5.5],[-1.009162,45.610809,4.0],[-1.009001,45.610244,6.25],[-1.008898,45.609813,6.25],[-1.008687,45.608932,6.25],[-1.008655,45.608802,6.25],[-1.008632,45.608706,6.25],[-1.008549,45.608358,6.25],[-1.008523,45.608132,6.25],[-1.008476,45.608107,6.25],[-1.008436,45.608068,6.25],[-1.008166,45.608032,8.75],[-1.007967,45.607898,9.0],[-1.007805,45.607791,9.5],[-1.007565,45.607624,10.5],[-1.007179,45.607387,11.5],[-1.007138,45.607362,11.75],[-1.006943,45.607247,12.5],[-1.006877,45.607207,13.0],[-1.006774,45.607150,13.25],[-1.006495,45.606994,14.75],[-1.006329,45.606876,16.0],[-1.006152,45.606739,17.5],[-1.006046,45.606589,18.25],[-1.005969,45.606410,18.5],[-1.005958,45.606159,18.25],[-1.005956,45.606064,18.25],[-1.005943,45.605925,18.25],[-1.005928,45.605847,18.0],[-1.005916,45.605779,18.0],[-1.005910,45.605723,18.0],[-1.005900,45.605691,18.0],[-1.005830,45.605544,17.5],[-1.005817,45.605524,17.5],[-1.005732,45.605389,17.0],[-1.005689,45.605331,16.75],[-1.005642,45.605270,16.5],[-1.005222,45.604898,14.5],[-1.004825,45.604528,12.0],[-1.004732,45.604442,11.5],[-1.004484,45.604202,10.0],[-1.004440,45.604168,9.75],[-1.004312,45.604069,9.5],[-1.004170,45.603962,9.25],[-1.004100,45.603910,9.25],[-1.003995,45.603852,9.25],[-1.003747,45.603707,9.25],[-1.003489,45.603520,9.5],[-1.003320,45.603389,9.75],[-1.003246,45.603321,9.75],[-1.003179,45.603259,9.5],[-1.003040,45.603090,9.0],[-1.002965,45.602998,8.75],[-1.002794,45.602763,7.75],[-1.002727,45.602664,7.5],[-1.002659,45.602569,7.25],[-1.002616,45.602494,7.0],[-1.002468,45.602251,7.5],[-1.002351,45.602167,7.75],[-1.002350,45.602146,7.75],[-1.002316,45.602105,7.75],[-1.002279,45.602091,7.75],[-1.002237,45.602088,7.75],[-1.002132,45.602028,8.0],[-1.002015,45.602002,8.0],[-1.001909,45.602001,8.0],[-1.001613,45.601914,8.25],[-1.001432,45.601868,8.5],[-1.001311,45.601836,8.5],[-1.001101,45.601781,8.5],[-1.000901,45.601726,8.75],[-1.000709,45.601677,9.0],[-1.000409,45.601600,9.25],[-1.000029,45.601515,9.25],[-0.999933,45.601491,9.0],[-0.999877,45.601476,9.0],[-0.999884,45.601409,8.5],[-0.999408,45.601292,7.75],[-0.999355,45.601282,7.75],[-0.999294,45.601270,7.5],[-0.998807,45.601157,7.5],[-0.998768,45.601147,7.5],[-0.998716,45.601134,7.5],[-0.998386,45.601049,7.75],[-0.998341,45.601040,7.75],[-0.998295,45.601030,7.75],[-0.997902,45.600929,7.75],[-0.997845,45.600912,7.75],[-0.997767,45.600889,7.75],[-0.997557,45.600810,7.75],[-0.997504,45.600791,7.75],[-0.997467,45.600778,7.75],[-0.997267,45.600673,7.75],[-0.996722,45.600476,7.75],[-0.996664,45.600455,5.25],[-0.996585,45.600424,5.5],[-0.995650,45.600013,8.0],[-0.995590,45.599987,8.0],[-0.995545,45.599967,8.0],[-0.995198,45.599800,8.0],[-0.995108,45.599759,8.0],[-0.994951,45.599688,8.0],[-0.994784,45.599555,8.0],[-0.994593,45.599399,8.0],[-0.994484,45.599249,8.0],[-0.994102,45.598989,8.0],[-0.993738,45.598844,8.0],[-0.993648,45.598696,8.0],[-0.993636,45.598676,8.0],[-0.993379,45.598423,8.0],[-0.993143,45.598129,8.0],[-0.993013,45.597893,8.0],[-0.992760,45.597347,8.0],[-0.990276,45.591626,8.0],[-0.989965,45.590911,6.25],[-0.989777,45.590457,6.0],[-0.989562,45.589937,6.0],[-0.989448,45.589662,6.0],[-0.989378,45.589553,6.0],[-0.989284,45.589444,6.0],[-0.989193,45.589391,6.0],[-0.989046,45.589334,8.0],[-0.989000,45.589316,8.5],[-0.988733,45.589280,10.25],[-0.988324,45.589321,13.25],[-0.988077,45.589358,13.75],[-0.987849,45.589378,14.25],[-0.987617,45.589385,15.0],[-0.987443,45.589351,15.5],[-0.987290,45.589337,15.0],[-0.986927,45.589237,14.5],[-0.986499,45.588958,14.5],[-0.985889,45.588569,14.5],[-0.985786,45.588470,14.75],[-0.985462,45.588011,16.25],[-0.985300,45.587743,17.5],[-0.985217,45.587597,18.25],[-0.985183,45.587487,18.75],[-0.985138,45.587344,18.75],[-0.985116,45.587163,18.5],[-0.985119,45.587103,18.5],[-0.985061,45.586993,18.25],[-0.985068,45.586889,18.25],[-0.985154,45.586649,18.0],[-0.985334,45.586301,16.75],[-0.985504,45.586017,15.75],[-0.985523,45.585994,15.5],[-0.985618,45.585790,15.0],[-0.985643,45.585665,15.0],[-0.985661,45.585574,15.0],[-0.985669,45.585357,15.25],[-0.985655,45.585258,15.5],[-0.985630,45.585048,15.5],[-0.985592,45.584811,15.25],[-0.985555,45.584544,14.75],[-0.985499,45.584092,14.0],[-0.985470,45.583916,13.5],[-0.985436,45.583701,12.75],[-0.985326,45.583630,12.5],[-0.985167,45.583482,11.75],[-0.984873,45.583272,11.75],[-0.984596,45.583037,14.25],[-0.984310,45.582758,17.25],[-0.984041,45.582434,20.75],[-0.983504,45.581867,24.75],[-0.983122,45.581575,27.25],[-0.982629,45.581203,30.25],[-0.981938,45.580690,35.25],[-0.981225,45.580134,43.5],[-0.980916,45.579974,45.5],[-0.980534,45.579846,45.75],[-0.980055,45.579722,46.0],[-0.979991,45.579706,46.25],[-0.978408,45.579336,38.5],[-0.978315,45.579319,38.0],[-0.977947,45.579218,35.25],[-0.977834,45.579182,34.5],[-0.977660,45.579125,33.5],[-0.977462,45.579074,32.75],[-0.977379,45.579050,32.25],[-0.977190,45.579003,31.75],[-0.976790,45.578952,30.25],[-0.976569,45.578946,29.75],[-0.976155,45.578921,29.75],[-0.975650,45.578929,29.0],[-0.975637,45.578757,28.75],[-0.975420,45.578488,27.5],[-0.975239,45.578246,26.5],[-0.975184,45.578064,26.0],[-0.975161,45.577736,25.25],[-0.975108,45.577667,24.75],[-0.974851,45.577446,22.75],[-0.974568,45.577277,21.25],[-0.974293,45.577146,20.0],[-0.973472,45.576698,20.0],[-0.972585,45.576322,16.75],[-0.972117,45.576107,17.75],[-0.971958,45.576049,18.25],[-0.971824,45.576034,18.25],[-0.971630,45.575878,19.5],[-0.971429,45.575709,20.5],[-0.971113,45.575215,24.75],[-0.971018,45.575070,26.25],[-0.970819,45.574848,27.5],[-0.970572,45.574578,27.75],[-0.970420,45.574436,28.0],[-0.970173,45.574319,28.25],[-0.969936,45.574189,28.5],[-0.969659,45.574046,28.0],[-0.969397,45.573935,27.5],[-0.968969,45.573783,27.25],[-0.968655,45.573663,27.0],[-0.968329,45.573527,26.75],[-0.967773,45.573283,26.0],[-0.967176,45.573018,24.75],[-0.966997,45.572932,24.5],[-0.966748,45.572721,24.25],[-0.966384,45.572525,24.5],[-0.966310,45.572488,24.75],[-0.965862,45.572307,25.0],[-0.965611,45.572234,25.75],[-0.965489,45.572052,26.0],[-0.965375,45.571844,26.25],[-0.965344,45.571695,26.5],[-0.965324,45.571564,26.25],[-0.965250,45.571436,26.25],[-0.964977,45.571158,27.0],[-0.964616,45.570926,27.0],[-0.964540,45.570791,26.75],[-0.964338,45.570434,26.0],[-0.964192,45.570186,26.25],[-0.963964,45.569799,26.75],[-0.963930,45.569741,27.0],[-0.963526,45.568930,30.0],[-0.963315,45.568561,32.5],[-0.963262,45.568468,33.0],[-0.963080,45.568151,34.5],[-0.962793,45.567671,36.5],[-0.962619,45.567351,37.5],[-0.962551,45.567226,37.5],[-0.962316,45.566848,37.75],[-0.962178,45.566603,37.5],[-0.961630,45.565848,32.75],[-0.961514,45.565746,32.25],[-0.961462,45.565694,32.0],[-0.961441,45.565613,31.5],[-0.961450,45.565587,31.5],[-0.961503,45.565551,31.5],[-0.961535,45.565505,31.5],[-0.961544,45.565459,31.25],[-0.961530,45.565411,31.0],[-0.961495,45.565368,30.75],[-0.961442,45.565336,30.5],[-0.961376,45.565317,30.25],[-0.961306,45.565315,30.25],[-0.961238,45.565329,30.0],[-0.961158,45.565243,29.5],[-0.960740,45.564629,25.25],[-0.960710,45.564588,24.75],[-0.960654,45.564508,24.0],[-0.960604,45.564437,23.5],[-0.960486,45.564272,22.25],[-0.960443,45.564211,21.75],[-0.960398,45.564148,21.25],[-0.960374,45.564113,21.25],[-0.960261,45.563955,20.5],[-0.960174,45.563832,20.0],[-0.960064,45.563680,19.5],[-0.959937,45.563502,19.0],[-0.959827,45.563349,18.5],[-0.959817,45.563336,18.5],[-0.959642,45.563134,19.25],[-0.959618,45.563105,19.25],[-0.959455,45.562914,20.0],[-0.959294,45.562740,20.75],[-0.958881,45.562313,22.25],[-0.958593,45.562007,23.25],[-0.958548,45.561958,23.5],[-0.958272,45.561664,24.75],[-0.958221,45.561611,24.75],[-0.958175,45.561562,24.5],[-0.958062,45.561386,23.75],[-0.958058,45.561373,23.75],[-0.957980,45.561160,23.0],[-0.957966,45.561099,22.75],[-0.957935,45.561013,22.5],[-0.957914,45.560975,22.5],[-0.957874,45.560911,22.25],[-0.957768,45.560745,21.5],[-0.957646,45.560582,20.75],[-0.957590,45.560507,20.25],[-0.957291,45.560091,18.25],[-0.956797,45.559338,14.25],[-0.956738,45.559238,13.5],[-0.956706,45.559244,13.5],[-0.956656,45.559238,13.25],[-0.956531,45.559285,13.5],[-0.956496,45.559330,13.75],[-0.956402,45.559303,13.5],[-0.956297,45.559274,13.25],[-0.956011,45.559188,12.25],[-0.955738,45.559111,12.0],[-0.955620,45.559113,12.25],[-0.955313,45.559157,13.0],[-0.955045,45.559132,13.5],[-0.955015,45.559126,13.75],[-0.954788,45.559082,13.25],[-0.954599,45.559027,12.75],[-0.954550,45.559013,12.75],[-0.954298,45.558866,12.0],[-0.954097,45.558748,11.25],[-0.953980,45.558676,11.0],[-0.953954,45.558661,11.0],[-0.953897,45.558629,10.75],[-0.953874,45.558617,10.75],[-0.953830,45.558593,10.75],[-0.953796,45.558574,10.5],[-0.953633,45.558491,10.25],[-0.953596,45.558471,10.25],[-0.953500,45.558433,10.25],[-0.953353,45.558372,10.0],[-0.953121,45.558276,9.75],[-0.952999,45.558189,9.5],[-0.952895,45.558118,9.25],[-0.952871,45.558102,9.25],[-0.952655,45.558019,9.0],[-0.952463,45.557961,9.0],[-0.952419,45.557948,9.0],[-0.952533,45.557753,8.5],[-0.952436,45.557636,8.25],[-0.952180,45.557318,7.5],[-0.952156,45.557289,7.25],[-0.952077,45.557193,7.25],[-0.952035,45.557156,7.0],[-0.951958,45.557088,7.0],[-0.951597,45.556850,6.0],[-0.951570,45.556836,6.0],[-0.951066,45.556556,6.0],[-0.951037,45.556543,6.0],[-0.950868,45.556468,6.25],[-0.950073,45.556130,4.75],[-0.949887,45.556050,4.5],[-0.949339,45.555810,4.25],[-0.949073,45.555702,4.25],[-0.948685,45.555559,4.75],[-0.947875,45.555374,4.0],[-0.947118,45.555217,3.0],[-0.946773,45.555171,2.75],[-0.946579,45.555144,2.5],[-0.945764,45.555026,1.75],[-0.945628,45.555010,1.5],[-0.945622,45.554990,1.75],[-0.945603,45.554974,1.75],[-0.945579,45.554968,1.75],[-0.945554,45.554969,1.75],[-0.945532,45.554979,1.5],[-0.945517,45.554997,1.5],[-0.945517,45.555017,1.5],[-0.945533,45.555035,1.5],[-0.945418,45.555168,1.5],[-0.945274,45.555223,1.25],[-0.945149,45.555279,1.25],[-0.945127,45.555243,1.25],[-0.945077,45.555159,1.0],[-0.944963,45.555037,1.0],[-0.944894,45.555059,1.0],[-0.944887,45.555066,1.0],[-0.944725,45.555227,1.5],[-0.944511,45.555434,2.0],[-0.944328,45.555509,2.25],[-0.944290,45.555528,2.25],[-0.944222,45.555562,2.5],[-0.944144,45.555625,2.5],[-0.943478,45.555372,2.5],[-0.943388,45.555338,2.5],[-0.943266,45.555375,2.5],[-0.943222,45.555389,2.5],[-0.942859,45.555581,2.5],[-0.942656,45.555872,2.75],[-0.942408,45.556229,2.75],[-0.942156,45.556843,2.0],[-0.942041,45.556955,1.75],[-0.941499,45.557043,1.5],[-0.941035,45.557248,2.75],[-0.940013,45.557342,1.75],[-0.939435,45.557283,1.75],[-0.938888,45.557249,1.75],[-0.938734,45.557930,3.75],[-0.938675,45.557977,3.75],[-0.935023,45.557530,1.0],[-0.934532,45.557555,1.0],[-0.934128,45.557566,1.0],[-0.933929,45.557675,1.0],[-0.933596,45.557717,1.0],[-0.933427,45.557787,1.0],[-0.933266,45.557791,1.0],[-0.933107,45.557744,1.0],[-0.932637,45.557556,1.75],[-0.932431,45.557474,2.0],[-0.932141,45.557196,1.75],[-0.931712,45.556925,2.0],[-0.931261,45.556700,2.0],[-0.930336,45.556372,1.0],[-0.930060,45.556452,0.75],[-0.929573,45.556268,0.5],[-0.929350,45.556164,0.25],[-0.928960,45.556023,0.25],[-0.927983,45.555530,0.25],[-0.927754,45.555436,0.25],[-0.927418,45.555304,1.25],[-0.927035,45.555113,1.0],[-0.926691,45.554876,1.0],[-0.926174,45.554529,1.0],[-0.925341,45.553922,1.0],[-0.924527,45.553271,1.0],[-0.923848,45.552563,2.5],[-0.923822,45.552498,2.75],[-0.923745,45.552121,2.75],[-0.923775,45.551962,2.5],[-0.923721,45.551783,2.5],[-0.923580,45.551546,2.5],[-0.923339,45.551416,2.5],[-0.922951,45.551294,2.5],[-0.922635,45.551199,2.5],[-0.922261,45.551219,2.75],[-0.922018,45.551270,3.0],[-0.921786,45.551321,3.25],[-0.921549,45.551389,3.25],[-0.920482,45.552493,6.5],[-0.920282,45.552355,6.0],[-0.920070,45.552257,5.5],[-0.919997,45.552216,5.5],[-0.919847,45.552131,5.0],[-0.919430,45.551947,3.5],[-0.919073,45.551745,2.0],[-0.918666,45.551609,2.0],[-0.918416,45.551574,2.0],[-0.918194,45.551535,2.0],[-0.918194,45.551253,2.0],[-0.917239,45.550784,2.0],[-0.916910,45.550642,2.0],[-0.916630,45.550471,2.0],[-0.916358,45.550308,2.0],[-0.914675,45.549037,2.0],[-0.914175,45.548584,2.0],[-0.913397,45.547881,2.0],[-0.913116,45.547496,2.0],[-0.913049,45.547406,2.0],[-0.912910,45.547261,2.0],[-0.912743,45.547077,2.0],[-0.912471,45.546787,2.0],[-0.912061,45.546292,2.0],[-0.911646,45.545796,2.0],[-0.911322,45.545365,2.0],[-0.911149,45.545169,2.0],[-0.911094,45.545171,2.0],[-0.910560,45.544515,1.0],[-0.910024,45.543855,1.0],[-0.909582,45.543287,1.0],[-0.908957,45.542515,1.0],[-0.908457,45.541886,1.0],[-0.907745,45.541001,1.0],[-0.907237,45.540332,1.0],[-0.907197,45.540283,1.0],[-0.906971,45.540003,1.0],[-0.906651,45.539610,1.0],[-0.906329,45.539201,1.0],[-0.905909,45.538670,1.0],[-0.905564,45.538209,2.0],[-0.905552,45.538148,2.0],[-0.905565,45.538093,2.25],[-0.905606,45.537991,2.25],[-0.905709,45.537791,2.5],[-0.905884,45.537458,2.5],[-0.905893,45.537338,2.5],[-0.905858,45.537280,2.5],[-0.905816,45.537236,2.5],[-0.906157,45.536662,1.5],[-0.906533,45.536355,2.25],[-0.906621,45.536283,2.75],[-0.906625,45.536279,2.75]]}}]}\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[-1.015299,45.617898],[-1.015202,45.617824],[-1.015071,45.617723],[-1.014541,45.617297],[-1.014236,45.617059],[-1.013942,45.616812],[-1.013920,45.616793],[-1.013464,45.616400],[-1.013190,45.616158],[-1.012561,45.615530],[-1.012438,45.615406],[-1.011751,45.614659],[-1.011207,45.614058],[-1.011079,45.613940],[-1.010710,45.613534,5.5],[-1.010565,45.613355,5.5],[-1.010235,45.612951,5.5],[-1.010085,45.612753,5.5],[-1.009900,45.612488,5.5],[-1.009813,45.612350,5.5],[-1.009740,45.612218,5.5],[-1.009672,45.612118,5.5],[-1.009629,45.612004,5.5],[-1.009536,45.611835,5.5],[-1.009455,45.611661,5.5],[-1.009329,45.611364,5.5],[-1.009162,45.610809,4.0],[-1.009001,45.610244,6.25],[-1.008898,45.609813,6.25],[-1.008687,45.608932,6.25],[-1.008655,45.608802,6.25],[-1.008632,45.608706,6.25],[-1.008549,45.608358,6.25],[-1.008523,45.608132,6.25],[-1.008476,45.608107,6.25],[-1.008436,45.608068,6.25],[-1.008166,45.608032,8.75],[-1.007967,45.607898,9.0],[-1.007805,45.607791,9.5],[-1.007565,45.607624,10.5],[-1.007179,45.607387,11.5],[-1.007138,45.607362,11.75],[-1.006943,45.607247,12.5],[-1.006877,45.607207,13.0],[-1.006774,45.607150,13.25],[-1.006495,45.606994,14.75],[-1.006329,45.606876,16.0],[-1.006152,45.606739,17.5],[-1.006046,45.606589,18.25],[-1.005969,45.606410,18.5],[-1.005958,45.606159,18.25],[-1.005956,45.606064,18.25],[-1.005943,45.605925,18.25],[-1.005928,45.605847,18.0],[-1.005916,45.605779,18.0],[-1.005910,45.605723,18.0],[-1.005900,45.605691,18.0],[-1.005830,45.605544,17.5],[-1.005817,45.605524,17.5],[-1.005732,45.605389,17.0],[-1.005689,45.605331,16.75],[-1.005642,45.605270,16.5],[-1.005222,45.604898,14.5],[-1.004825,45.604528,12.0],[-1.004732,45.604442,11.5],[-1.004484,45.604202,10.0],[-1.004440,45.604168,9.75],[-1.004312,45.604069,9.5],[-1.004170,45.603962,9.25],[-1.004100,45.603910,9.25],[-1.003995,45.603852,9.25],[-1.003747,45.603707,9.25],[-1.003489,45.603520,9.5],[-1.003320,45.603389,9.75],[-1.003246,45.603321,9.75],[-1.003179,45.603259,9.5],[-1.003040,45.603090,9.0],[-1.002965,45.602998,8.75],[-1.002794,45.602763,7.75],[-1.002727,45.602664,7.5],[-1.002659,45.602569,7.25],[-1.002616,45.602494,7.0],[-1.002468,45.602251,7.5],[-1.002351,45.602167,7.75],[-1.002350,45.602146,7.75],[-1.002316,45.602105,7.75],[-1.002279,45.602091,7.75],[-1.002237,45.602088,7.75],[-1.002132,45.602028,8.0],[-1.002015,45.602002,8.0],[-1.001909,45.602001,8.0],[-1.001613,45.601914,8.25],[-1.001432,45.601868,8.5],[-1.001311,45.601836,8.5],[-1.001101,45.601781,8.5],[-1.000901,45.601726,8.75],[-1.000709,45.601677,9.0],[-1.000409,45.601600,9.25],[-1.000029,45.601515,9.25],[-0.999933,45.601491,9.0],[-0.999877,45.601476,9.0],[-0.999884,45.601409,8.5],[-0.999408,45.601292,7.75],[-0.999355,45.601282,7.75],[-0.999294,45.601270,7.5],[-0.998807,45.601157,7.5],[-0.998768,45.601147,7.5],[-0.998716,45.601134,7.5],[-0.998386,45.601049,7.75],[-0.998341,45.601040,7.75],[-0.998295,45.601030,7.75],[-0.997902,45.600929,7.75],[-0.997845,45.600912,7.75],[-0.997767,45.600889,7.75],[-0.997557,45.600810,7.75],[-0.997504,45.600791,7.75],[-0.997467,45.600778,7.75],[-0.997267,45.600673,7.75],[-0.996722,45.600476,7.75],[-0.996664,45.600455,5.25],[-0.996585,45.600424,5.5],[-0.995650,45.600013,8.0],[-0.995590,45.599987,8.0],[-0.995545,45.599967,8.0],[-0.995198,45.599800,8.0],[-0.995108,45.599759,8.0],[-0.994951,45.599688,8.0],[-0.994784,45.599555,8.0],[-0.994593,45.599399,8.0],[-0.994484,45.599249,8.0],[-0.994102,45.598989,8.0],[-0.993738,45.598844,8.0],[-0.993648,45.598696,8.0],[-0.993636,45.598676,8.0],[-0.993379,45.598423,8.0],[-0.993143,45.598129,8.0],[-0.993013,45.597893,8.0],[-0.992760,45.597347,8.0],[-0.990276,45.591626,8.0],[-0.989965,45.590911,6.25],[-0.989777,45.590457,6.0],[-0.989562,45.589937,6.0],[-0.989448,45.589662,6.0],[-0.989378,45.589553,6.0],[-0.989284,45.589444,6.0],[-0.989193,45.589391,6.0],[-0.989046,45.589334,8.0],[-0.989000,45.589316,8.5],[-0.988733,45.589280,10.25],[-0.988324,45.589321,13.25],[-0.988077,45.589358,13.75],[-0.987849,45.589378,14.25],[-0.987617,45.589385,15.0],[-0.987443,45.589351,15.5],[-0.987290,45.589337,15.0],[-0.986927,45.589237,14.5],[-0.986499,45.588958,14.5],[-0.985889,45.588569,14.5],[-0.985786,45.588470,14.75],[-0.985462,45.588011,16.25],[-0.985300,45.587743,17.5],[-0.985217,45.587597,18.25],[-0.985183,45.587487,18.75],[-0.985138,45.587344,18.75],[-0.985116,45.587163,18.5],[-0.985119,45.587103,18.5],[-0.985061,45.586993,18.25],[-0.985068,45.586889,18.25],[-0.985154,45.586649,18.0],[-0.985334,45.586301,16.75],[-0.985504,45.586017,15.75],[-0.985523,45.585994,15.5],[-0.985618,45.585790,15.0],[-0.985643,45.585665,15.0],[-0.985661,45.585574,15.0],[-0.985669,45.585357,15.25],[-0.985655,45.585258,15.5],[-0.985630,45.585048,15.5],[-0.985592,45.584811,15.25],[-0.985555,45.584544,14.75],[-0.985499,45.584092,14.0],[-0.985470,45.583916,13.5],[-0.985436,45.583701,12.75],[-0.985326,45.583630,12.5],[-0.985167,45.583482,11.75],[-0.984873,45.583272,11.75],[-0.984596,45.583037,14.25],[-0.984310,45.582758,17.25],[-0.984041,45.582434,20.75],[-0.983504,45.581867,24.75],[-0.983122,45.581575,27.25],[-0.982629,45.581203,30.25],[-0.981938,45.580690,35.25],[-0.981225,45.580134,43.5],[-0.980916,45.579974,45.5],[-0.980534,45.579846,45.75],[-0.980055,45.579722,46.0],[-0.979991,45.579706,46.25],[-0.978408,45.579336,38.5],[-0.978315,45.579319,38.0],[-0.977947,45.579218,35.25],[-0.977834,45.579182,34.5],[-0.977660,45.579125,33.5],[-0.977462,45.579074,32.75],[-0.977379,45.579050,32.25],[-0.977190,45.579003,31.75],[-0.976790,45.578952,30.25],[-0.976569,45.578946,29.75],[-0.976155,45.578921,29.75],[-0.975650,45.578929,29.0],[-0.975637,45.578757,28.75],[-0.975420,45.578488,27.5],[-0.975239,45.578246,26.5],[-0.975184,45.578064,26.0],[-0.975161,45.577736,25.25],[-0.975108,45.577667,24.75],[-0.974851,45.577446,22.75],[-0.974568,45.577277,21.25],[-0.974293,45.577146,20.0],[-0.973472,45.576698,20.0],[-0.972585,45.576322,16.75],[-0.972117,45.576107,17.75],[-0.971958,45.576049,18.25],[-0.971824,45.576034,18.25],[-0.971630,45.575878,19.5],[-0.971429,45.575709,20.5],[-0.971113,45.575215,24.75],[-0.971018,45.575070,26.25],[-0.970819,45.574848,27.5],[-0.970572,45.574578,27.75],[-0.970420,45.574436,28.0],[-0.970173,45.574319,28.25],[-0.969936,45.574189,28.5],[-0.969659,45.574046,28.0],[-0.969397,45.573935,27.5],[-0.968969,45.573783,27.25],[-0.968655,45.573663,27.0],[-0.968329,45.573527,26.75],[-0.967773,45.573283,26.0],[-0.967176,45.573018,24.75],[-0.966997,45.572932,24.5],[-0.966748,45.572721,24.25],[-0.966384,45.572525,24.5],[-0.966310,45.572488,24.75],[-0.965862,45.572307,25.0],[-0.965611,45.572234,25.75],[-0.965489,45.572052,26.0],[-0.965375,45.571844,26.25],[-0.965344,45.571695,26.5],[-0.965324,45.571564,26.25],[-0.965250,45.571436,26.25],[-0.964977,45.571158,27.0],[-0.964616,45.570926,27.0],[-0.964540,45.570791,26.75],[-0.964338,45.570434,26.0],[-0.964192,45.570186,26.25],[-0.963964,45.569799,26.75],[-0.963930,45.569741,27.0],[-0.963526,45.568930,30.0],[-0.963315,45.568561,32.5],[-0.963262,45.568468,33.0],[-0.963080,45.568151,34.5],[-0.962793,45.567671,36.5],[-0.962619,45.567351,37.5],[-0.962551,45.567226,37.5],[-0.962316,45.566848,37.75],[-0.962178,45.566603,37.5],[-0.961630,45.565848,32.75],[-0.961514,45.565746,32.25],[-0.961462,45.565694,32.0],[-0.961441,45.565613,31.5],[-0.961450,45.565587,31.5],[-0.961503,45.565551,31.5],[-0.961535,45.565505,31.5],[-0.961544,45.565459,31.25],[-0.961530,45.565411,31.0],[-0.961495,45.565368,30.75],[-0.961442,45.565336,30.5],[-0.961376,45.565317,30.25],[-0.961306,45.565315,30.25],[-0.961238,45.565329,30.0],[-0.961158,45.565243,29.5],[-0.960740,45.564629,25.25],[-0.960710,45.564588,24.75],[-0.960654,45.564508,24.0],[-0.960604,45.564437,23.5],[-0.960486,45.564272,22.25],[-0.960443,45.564211,21.75],[-0.960398,45.564148,21.25],[-0.960374,45.564113,21.25],[-0.960261,45.563955,20.5],[-0.960174,45.563832,20.0],[-0.960064,45.563680,19.5],[-0.959937,45.563502,19.0],[-0.959827,45.563349,18.5],[-0.959817,45.563336,18.5],[-0.959642,45.563134,19.25],[-0.959618,45.563105,19.25],[-0.959455,45.562914,20.0],[-0.959294,45.562740,20.75],[-0.958881,45.562313,22.25],[-0.958593,45.562007,23.25],[-0.958548,45.561958,23.5],[-0.958272,45.561664,24.75],[-0.958221,45.561611,24.75],[-0.958175,45.561562,24.5],[-0.958062,45.561386,23.75],[-0.958058,45.561373,23.75],[-0.957980,45.561160,23.0],[-0.957966,45.561099,22.75],[-0.957935,45.561013,22.5],[-0.957914,45.560975,22.5],[-0.957874,45.560911,22.25],[-0.957768,45.560745,21.5],[-0.957646,45.560582,20.75],[-0.957590,45.560507,20.25],[-0.957291,45.560091,18.25],[-0.956797,45.559338,14.25],[-0.956738,45.559238,13.5],[-0.956706,45.559244,13.5],[-0.956656,45.559238,13.25],[-0.956531,45.559285,13.5],[-0.956496,45.559330,13.75],[-0.956402,45.559303,13.5],[-0.956297,45.559274,13.25],[-0.956011,45.559188,12.25],[-0.955738,45.559111,12.0],[-0.955620,45.559113,12.25],[-0.955313,45.559157,13.0],[-0.955045,45.559132,13.5],[-0.955015,45.559126,13.75],[-0.954788,45.559082,13.25],[-0.954599,45.559027,12.75],[-0.954550,45.559013,12.75],[-0.954298,45.558866,12.0],[-0.954097,45.558748,11.25],[-0.953980,45.558676,11.0],[-0.953954,45.558661,11.0],[-0.953897,45.558629,10.75],[-0.953874,45.558617,10.75],[-0.953830,45.558593,10.75],[-0.953796,45.558574,10.5],[-0.953633,45.558491,10.25],[-0.953596,45.558471,10.25],[-0.953500,45.558433,10.25],[-0.953353,45.558372,10.0],[-0.953121,45.558276,9.75],[-0.952999,45.558189,9.5],[-0.952895,45.558118,9.25],[-0.952871,45.558102,9.25],[-0.952655,45.558019,9.0],[-0.952463,45.557961,9.0],[-0.952419,45.557948,9.0],[-0.952533,45.557753,8.5],[-0.952436,45.557636,8.25],[-0.952180,45.557318,7.5],[-0.952156,45.557289,7.25],[-0.952077,45.557193,7.25],[-0.952035,45.557156,7.0],[-0.951958,45.557088,7.0],[-0.951597,45.556850,6.0],[-0.951443,45.556985,6.25],[-0.951298,45.557175,6.25],[-0.951275,45.557231,6.25],[-0.951267,45.557263,6.25],[-0.951258,45.557369,6.25],[-0.951285,45.557430,6.25],[-0.951180,45.557425,6.25],[-0.950704,45.557318,5.75],[-0.950628,45.557300,5.75],[-0.950036,45.557161,5.0],[-0.949901,45.557129,5.0],[-0.949805,45.557110,5.0],[-0.949473,45.557042,4.75],[-0.948798,45.556903,4.25],[-0.948376,45.556859,4.0],[-0.948156,45.556840,3.75],[-0.947845,45.556663,3.25],[-0.947335,45.556361,2.5],[-0.947121,45.556264,2.5],[-0.946468,45.556153,2.0],[-0.946283,45.556088,1.75],[-0.946067,45.556011,1.25],[-0.945820,45.555922,1.0],[-0.945509,45.555748,1.25],[-0.945482,45.555720,1.25],[-0.945335,45.555573,1.5],[-0.945257,45.555452,1.5],[-0.945225,45.555402,1.25],[-0.945166,45.555308,1.25],[-0.945149,45.555279,1.25],[-0.945127,45.555243,1.25],[-0.945077,45.555159,1.0],[-0.944963,45.555037,1.0],[-0.944894,45.555059,1.0],[-0.944887,45.555066,1.0],[-0.944725,45.555227,1.5],[-0.944511,45.555434,2.0],[-0.944328,45.555509,2.25],[-0.944290,45.555528,2.25],[-0.944222,45.555562,2.5],[-0.944144,45.555625,2.5],[-0.943478,45.555372,2.5],[-0.943388,45.555338,2.5],[-0.943266,45.555375,2.5],[-0.943222,45.555389,2.5],[-0.942859,45.555581,2.5],[-0.942656,45.555872,2.75],[-0.942408,45.556229,2.75],[-0.942156,45.556843,2.0],[-0.942041,45.556955,1.75],[-0.941499,45.557043,1.5],[-0.941035,45.557248,2.75],[-0.940013,45.557342,1.75],[-0.939435,45.557283,1.75],[-0.938888,45.557249,1.75],[-0.938734,45.557930,3.75],[-0.938675,45.557977,3.75],[-0.935023,45.557530,1.0],[-0.934532,45.557555,1.0],[-0.934128,45.557566,1.0],[-0.933929,45.557675,1.0],[-0.933596,45.557717,1.0],[-0.933427,45.557787,1.0],[-0.933266,45.557791,1.0],[-0.933107,45.557744,1.0],[-0.932637,45.557556,1.75],[-0.932431,45.557474,2.0],[-0.932141,45.557196,1.75],[-0.931712,45.556925,2.0],[-0.931261,45.556700,2.0],[-0.930336,45.556372,1.0],[-0.930060,45.556452,0.75],[-0.929573,45.556268,0.5],[-0.929350,45.556164,0.25],[-0.928960,45.556023,0.25],[-0.927983,45.555530,0.25],[-0.927754,45.555436,0.25],[-0.927418,45.555304,1.25],[-0.927035,45.555113,1.0],[-0.926691,45.554876,1.0],[-0.926174,45.554529,1.0],[-0.925341,45.553922,1.0],[-0.924527,45.553271,1.0],[-0.923848,45.552563,2.5],[-0.923822,45.552498,2.75],[-0.923745,45.552121,2.75],[-0.923775,45.551962,2.5],[-0.923721,45.551783,2.5],[-0.923580,45.551546,2.5],[-0.923339,45.551416,2.5],[-0.922951,45.551294,2.5],[-0.922635,45.551199,2.5],[-0.922261,45.551219,2.75],[-0.922018,45.551270,3.0],[-0.921786,45.551321,3.25],[-0.921549,45.551389,3.25],[-0.920482,45.552493,6.5],[-0.920282,45.552355,6.0],[-0.920070,45.552257,5.5],[-0.919997,45.552216,5.5],[-0.919847,45.552131,5.0],[-0.919430,45.551947,3.5],[-0.919073,45.551745,2.0],[-0.918666,45.551609,2.0],[-0.918416,45.551574,2.0],[-0.918194,45.551535,2.0],[-0.918194,45.551253,2.0],[-0.917239,45.550784,2.0],[-0.916910,45.550642,2.0],[-0.916630,45.550471,2.0],[-0.916358,45.550308,2.0],[-0.914675,45.549037,2.0],[-0.914175,45.548584,2.0],[-0.913397,45.547881,2.0],[-0.913116,45.547496,2.0],[-0.913049,45.547406,2.0],[-0.912910,45.547261,2.0],[-0.912743,45.547077,2.0],[-0.912471,45.546787,2.0],[-0.912061,45.546292,2.0],[-0.911646,45.545796,2.0],[-0.911322,45.545365,2.0],[-0.911149,45.545169,2.0],[-0.911094,45.545171,2.0],[-0.910560,45.544515,1.0],[-0.910024,45.543855,1.0],[-0.909582,45.543287,1.0],[-0.908957,45.542515,1.0],[-0.908457,45.541886,1.0],[-0.907745,45.541001,1.0],[-0.907237,45.540332,1.0],[-0.907197,45.540283,1.0],[-0.906971,45.540003,1.0],[-0.906651,45.539610,1.0],[-0.906329,45.539201,1.0],[-0.905909,45.538670,1.0],[-0.905564,45.538209,2.0],[-0.905552,45.538148,2.0],[-0.905565,45.538093,2.25],[-0.905606,45.537991,2.25],[-0.905709,45.537791,2.5],[-0.905884,45.537458,2.5],[-0.905893,45.537338,2.5],[-0.905858,45.537280,2.5],[-0.905816,45.537236,2.5],[-0.906157,45.536662,1.5],[-0.906533,45.536355,2.25],[-0.906621,45.536283,2.75],[-0.906625,45.536279,2.75]]}}]}\n", "plot_route(start_point, end_point, human)" ] }, @@ -363,19 +424,26 @@ }, { "cell_type": "code", - "execution_count": 82, + "execution_count": 268, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.617903/-1.015291/OpenStreetMap&lonlats=-1.015291,45.617903|-1.027243,45.711024&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 82, + "execution_count": 268, "metadata": {}, "output_type": "execute_result" } @@ -397,24 +465,31 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Prefer the slow traffic street without infrastructure rather than the large street without infrastructure." + "Prefer the slow traffic street without infrastructure but with cycle route (rue Amelot) rather than the large street without infrastructure (boulevard Beaumarchais). Another valid route would be Boulevard Richard Lenoir and Boulevard Voltaire which have cycle ways." ] }, { "cell_type": "code", - "execution_count": 70, + "execution_count": 286, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.853447/2.369506/OpenStreetMap&lonlats=2.369506,48.853447|2.364185,48.866825&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 70, + "execution_count": 286, "metadata": {}, "output_type": "execute_result" } @@ -435,19 +510,26 @@ }, { "cell_type": "code", - "execution_count": 71, + "execution_count": 287, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.843184/2.370129/OpenStreetMap&lonlats=2.370129,48.843184|2.37059,48.842915&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 71, + "execution_count": 287, "metadata": {}, "output_type": "execute_result" } @@ -468,19 +550,26 @@ }, { "cell_type": "code", - "execution_count": 72, + "execution_count": 288, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.843184/2.370129/OpenStreetMap&lonlats=2.370129,48.843184|2.376528,48.84217&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 72, + "execution_count": 288, "metadata": {}, "output_type": "execute_result" } @@ -501,19 +590,28 @@ }, { "cell_type": "code", - "execution_count": 73, - "metadata": {}, + "execution_count": 289, + "metadata": { + "scrolled": false + }, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.817783/2.316828/OpenStreetMap&lonlats=2.316828,48.817783|2.319623,48.818514&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 73, + "execution_count": 289, "metadata": {}, "output_type": "execute_result" } @@ -529,24 +627,33 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Take slow traffic streets. It should avoid \"Avenue du Général Leclerc\" which has no cycle infrastructure and is a very busy artery and prefer \"Rue de la Tombe Issoire\" or \"Rue du Père Corentin\"." + "Take slow traffic streets. It should avoid \"Avenue du Général Leclerc\" which has no cycle infrastructure and is a very busy artery and prefer \"Rue de la Tombe Issoire\" or \"Rue du Père Corentin\".\n", + "\n", + "**TODO** Should take into account `busway` tag." ] }, { "cell_type": "code", - "execution_count": 74, + "execution_count": 290, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.823278/2.324225/OpenStreetMap&lonlats=2.324225,48.823278|2.332508,48.827764&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 74, + "execution_count": 290, "metadata": {}, "output_type": "execute_result" } @@ -567,21 +674,28 @@ }, { "cell_type": "code", - "execution_count": 75, + "execution_count": 291, "metadata": { "scrolled": false }, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.843134/2.363493/OpenStreetMap&lonlats=2.363493,48.843134|2.3664,48.842933&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 75, + "execution_count": 291, "metadata": {}, "output_type": "execute_result" } @@ -602,19 +716,26 @@ }, { "cell_type": "code", - "execution_count": 76, + "execution_count": 292, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.843459/2.364432/OpenStreetMap&lonlats=2.364432,48.843459|2.37648,48.842131&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 76, + "execution_count": 292, "metadata": {}, "output_type": "execute_result" } @@ -630,24 +751,33 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "It should go to the shortest path along cycle lanes (going around \"Place de la République\" by the right instead of going on the right and crossing it)." + "It should avoid primary streets without cycle lanes if there is a cycle route nearby.\n", + "\n", + "**Note**: Routing across surface is not currently possible. See https://github.com/abrensch/brouter/issues/108." ] }, { "cell_type": "code", - "execution_count": 77, + "execution_count": 293, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.866589/2.365494/OpenStreetMap&lonlats=2.365494,48.866589|2.362736,48.867206&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 77, + "execution_count": 293, "metadata": {}, "output_type": "execute_result" } @@ -655,10 +785,49 @@ "source": [ "start_point = [2.365494,48.866589]\n", "end_point = [2.362736,48.867206]\n", - "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.365496,48.866591,42.25],[2.365401,48.866648,42.0],[2.365148,48.866713,40.75],[2.365048,48.866631,40.5],[2.365007,48.866604,40.5],[2.364756,48.866533,42.0],[2.364558,48.866610,42.0],[2.364326,48.866749,42.0],[2.364153,48.866851,42.0],[2.363789,48.867069,42.75],[2.363732,48.867103,42.75],[2.363701,48.867121,42.75],[2.363452,48.867277,42.5],[2.363307,48.867374,42.25],[2.363109,48.867293,44.0],[2.363099,48.867289,44.0],[2.362978,48.867241,44.75],[2.362802,48.867170,45.75],[2.362741,48.867209,45.75]]}}]}\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.365496,48.866591,42.25],[2.365401,48.866648,42.0],[2.365148,48.866713,40.75],[2.365214,48.866765,41.0],[2.365264,48.866805,41.25],[2.365517,48.866983,43.0],[2.365435,48.867093,42.75],[2.365027,48.867344,40.75],[2.364872,48.867438,40.5],[2.364669,48.867561,40.25],[2.364336,48.867761,40.25],[2.364061,48.867918,40.5],[2.363829,48.867770,40.25],[2.363662,48.867658,40.25],[2.363341,48.867477,41.0],[2.363307,48.867374,42.25],[2.363109,48.867293,44.0],[2.363099,48.867289,44.0],[2.362978,48.867241,44.75],[2.362802,48.867170,45.75],[2.362741,48.867209,45.75]]}}]}\n", "plot_route(start_point, end_point, human)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "The primary road \"Place de la République\" has a cycle lane so it is fine to route on it, even though it is a primary road." + ] + }, + { + "cell_type": "code", + "execution_count": 294, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.867129/2.3631/OpenStreetMap&lonlats=2.3631,48.867129|2.365414,48.866472&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 294, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [2.3631,48.867129]\n", + "end_point = [2.365414,48.866472]\n", + "plot_route(start_point, end_point)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -668,19 +837,26 @@ }, { "cell_type": "code", - "execution_count": 78, + "execution_count": 295, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.81318/2.301915/OpenStreetMap&lonlats=2.301915,48.81318|2.299844,48.811258&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 78, + "execution_count": 295, "metadata": {}, "output_type": "execute_result" } @@ -701,27 +877,34 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 296, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.787421/2.256145/OpenStreetMap&lonlats=2.256145,48.787421|2.245991,48.783339&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 79, + "execution_count": 296, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "start_point = [2.256113,48.787372]\n", + "start_point = [2.256145,48.787421]\n", "end_point = [2.245991,48.783339]\n", - "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.256120,48.787375,165.25],[2.256091,48.787405,165.5],[2.256075,48.787359,165.75],[2.255400,48.787103,169.0],[2.255125,48.786999,169.5],[2.255089,48.787043,169.75],[2.254933,48.786981,169.25],[2.254780,48.786922,169.25],[2.254450,48.786799,168.25],[2.254054,48.786650,166.75],[2.254012,48.786601,166.75],[2.253858,48.786515,166.5],[2.253713,48.786461,166.5],[2.253063,48.786195,166.5],[2.252868,48.786120,166.5],[2.252655,48.786021,166.25],[2.252289,48.785865,166.5],[2.251542,48.785578,167.75],[2.251381,48.785496,168.25],[2.251184,48.785419,168.5],[2.250998,48.785345,169.0],[2.250402,48.785075,168.5],[2.249762,48.784843,167.25],[2.249646,48.784797,167.0],[2.249050,48.784534,166.5],[2.248215,48.784191,168.25],[2.247983,48.784157,168.75],[2.247821,48.784114,169.25],[2.247480,48.784018,169.75],[2.247315,48.783955,169.5],[2.247234,48.783923,169.5],[2.247163,48.783896,169.5],[2.246482,48.783620,169.75],[2.246373,48.783572,169.75],[2.246456,48.783536,170.0],[2.246312,48.783471,170.0],[2.245990,48.783338,170.0]]}}]}\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.256140,48.787425,165.0],[2.256091,48.787405,165.5],[2.256075,48.787359,165.75],[2.255400,48.787103,169.0],[2.255125,48.786999,169.5],[2.255089,48.787043,169.75],[2.254780,48.786922,169.25],[2.254450,48.786799,168.25],[2.254054,48.786650,166.75],[2.254012,48.786601,166.75],[2.253858,48.786515,166.5],[2.253713,48.786461,166.5],[2.253063,48.786195,166.5],[2.252868,48.786120,166.5],[2.252655,48.786021,166.25],[2.252289,48.785865,166.5],[2.251542,48.785578,167.75],[2.251381,48.785496,168.25],[2.251184,48.785419,168.5],[2.250998,48.785345,169.0],[2.250402,48.785075,168.5],[2.249762,48.784843,167.25],[2.249646,48.784797,167.0],[2.249050,48.784534,166.5],[2.248215,48.784191,168.25],[2.247983,48.784157,168.75],[2.247821,48.784114,169.25],[2.247480,48.784018,169.75],[2.247315,48.783955,169.5],[2.247234,48.783923,169.5],[2.247163,48.783896,169.5],[2.246482,48.783620,169.75],[2.246373,48.783572,169.75],[2.246456,48.783536,170.0],[2.246312,48.783471,170.0],[2.245990,48.783338,170.0]]}}]}\n", "plot_route(start_point, end_point, human)" ] }, @@ -734,27 +917,34 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 297, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.787421/2.256145/OpenStreetMap&lonlats=2.256145,48.787421|2.254032,48.786585&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 80, + "execution_count": 297, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "start_point = [2.256132,48.787354]\n", + "start_point = [2.256145,48.787421]\n", "end_point = [2.254032,48.786585]\n", - "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.256128,48.787357,165.25],[2.256135,48.787360,165.25],[2.256091,48.787405,165.5],[2.256075,48.787359,165.75],[2.255400,48.787103,169.0],[2.255125,48.786999,169.5],[2.255098,48.787031,169.5],[2.255089,48.787043,169.75],[2.254780,48.786922,169.25],[2.254450,48.786799,168.25],[2.254054,48.786650,166.75],[2.254012,48.786601,166.75],[2.254035,48.786588,166.75]]}}]}\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.256140,48.787425,165.0],[2.256091,48.787405,165.5],[2.256075,48.787359,165.75],[2.255400,48.787103,169.0],[2.255125,48.786999,169.5],[2.255089,48.787043,169.75],[2.254780,48.786922,169.25],[2.254450,48.786799,168.25],[2.254054,48.786650,166.75],[2.254012,48.786601,166.75],[2.254035,48.786588,166.75]]}}]}\n", "plot_route(start_point, end_point, human)" ] }, @@ -767,19 +957,26 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 298, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.797788/3.139316/OpenStreetMap&lonlats=3.139316,45.797788|3.139295,45.802558&profile=trekking-custom\n" + ] + }, { "data": { "text/html": [ - "
" + "
" ], "text/plain": [ - "" + "" ] }, - "execution_count": 81, + "execution_count": 298, "metadata": {}, "output_type": "execute_result" } @@ -791,6 +988,206 @@ "plot_route(start_point, end_point, human)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**TODO**" + ] + }, + { + "cell_type": "code", + "execution_count": 301, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.844073/2.381598/OpenStreetMap&lonlats=2.381598,48.844073|2.362297,48.842809&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 301, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [2.381598,48.844073]\n", + "end_point = [2.362297,48.842809]\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.381592,48.844071,38.25],[2.381578,48.844088,38.25],[2.381554,48.844145,38.0],[2.381566,48.844173,37.75],[2.381583,48.844211,38.0],[2.381479,48.844254,38.25],[2.381433,48.844279,38.25],[2.381307,48.844224,37.75],[2.379752,48.843646,39.5],[2.379717,48.843637,39.5],[2.379638,48.843608,39.5],[2.379084,48.843384,40.5],[2.378860,48.843293,40.5],[2.378791,48.843229,40.5],[2.376751,48.842333,40.5],[2.376695,48.842296,40.5],[2.376597,48.842227,40.5],[2.376549,48.842194,37.0],[2.376420,48.842101,37.75],[2.376247,48.842014,38.75],[2.376187,48.841983,39.0],[2.376141,48.842012,39.0],[2.376118,48.842012,39.25],[2.375267,48.841591,41.75],[2.374316,48.841109,39.0],[2.374294,48.841085,39.0],[2.374041,48.840963,37.5],[2.373877,48.840885,36.5],[2.373421,48.840668,33.75],[2.373378,48.840644,33.5],[2.372631,48.841303,32.5],[2.371646,48.842040,34.75],[2.371572,48.842118,35.0],[2.371084,48.842473,32.75],[2.371074,48.842518,33.0],[2.370583,48.842914,34.5],[2.370424,48.843037,35.5],[2.370258,48.843155,36.25],[2.370172,48.843219,36.5],[2.370142,48.843197,36.25],[2.370088,48.843161,36.25],[2.369792,48.842996,36.25],[2.368716,48.842429,36.25],[2.368717,48.842429],[2.368059,48.842082],[2.367928,48.842028,32.0],[2.367883,48.842017,32.0],[2.367817,48.842013,32.0],[2.367760,48.841981,32.25],[2.367663,48.841924,32.5],[2.367113,48.842352,32.75],[2.366860,48.842546,34.0],[2.366685,48.842725,34.25],[2.366332,48.842985,34.75],[2.366286,48.843019,35.0],[2.366184,48.843095,35.0],[2.366080,48.843167,35.25],[2.365505,48.843590,35.0],[2.365456,48.843596,35.0],[2.365360,48.843591,35.5],[2.365189,48.843580,36.25],[2.365012,48.843588,36.75],[2.364892,48.843601,36.5],[2.364851,48.843606,36.5],[2.364727,48.843623,36.5],[2.364687,48.843580,36.75],[2.364377,48.843246,36.75],[2.364281,48.843098,36.25],[2.364253,48.843058,36.25],[2.364225,48.843018,36.0],[2.364086,48.843060,35.75],[2.364025,48.843074,35.75],[2.363993,48.843094,35.75],[2.363988,48.843124,35.75],[2.364008,48.843179,35.75],[2.364017,48.843203,35.75],[2.363913,48.843214,35.5],[2.362297,48.842807,34.0]]}}]}\n", + "plot_route(start_point, end_point, human)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Should take the cycleway when `bicycle=use_sidepath` is used." + ] + }, + { + "cell_type": "code", + "execution_count": 302, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/48.816211/2.30744/OpenStreetMap&lonlats=2.30744,48.816211|2.303189,48.811659&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 302, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [2.30744,48.816211]\n", + "end_point = [2.303189,48.811659]\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[2.307439,48.816203,70.75],[2.307245,48.816208,70.25],[2.307049,48.816215,70.5],[2.306904,48.816067,70.5],[2.306807,48.816040,70.5],[2.305231,48.814180,72.5],[2.304721,48.813579,74.75],[2.304552,48.813379,75.25],[2.304484,48.813297,75.25],[2.304313,48.813087,75.5],[2.303426,48.812041,75.75],[2.303442,48.811974,75.75],[2.303404,48.811930,75.75],[2.303353,48.811868,75.75],[2.303269,48.811766,75.75],[2.303187,48.811658,76.0]]}}]}\n", + "plot_route(start_point, end_point, human)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**TODO** It should ignore roads with `access=no`, even if they are part of a cycleroute.\n", + "\n", + "See https://github.com/nrenner/brouter-web/issues/31." + ] + }, + { + "cell_type": "code", + "execution_count": 303, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/45.119266/5.697463/OpenStreetMap&lonlats=5.697463,45.119266|5.695553,45.116843&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 303, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [5.697463,45.119266]\n", + "end_point = [5.695553,45.116843]\n", + "plot_route(start_point, end_point)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Southbound route close to Central Park should not use Central Park West as the cycleway is only the other way round. See https://github.com/nrenner/brouter-web/issues/124." + ] + }, + { + "cell_type": "code", + "execution_count": 309, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/40.801791/-73.960991/OpenStreetMap&lonlats=-73.960991,40.801791|-73.973672,40.779388&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 309, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [-73.960991,40.801791]\n", + "end_point = [-73.973672,40.779388]\n", + "human = {\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[-73.961009,40.801768,29.25],[-73.961057,40.801790,29.75],[-73.961009,40.801690,28.5],[-73.960998,40.801655,28.0],[-73.961025,40.801617,28.5],[-73.961092,40.801521,29.5],[-73.961350,40.801184,31.5],[-73.961381,40.801144,31.75],[-73.961780,40.800589,33.25],[-73.961839,40.800508,33.5],[-73.962235,40.799984,36.0],[-73.962309,40.799886,36.0],[-73.962684,40.799356,37.75],[-73.962792,40.799202,38.25],[-73.963205,40.798625,41.25],[-73.963275,40.798528,41.75],[-73.963670,40.797989,41.25],[-73.963736,40.797899,40.75],[-73.964190,40.797290,39.5],[-73.964219,40.797250,39.75],[-73.965464,40.795546,31.25],[-73.965544,40.795437,31.0],[-73.966020,40.794782,31.0],[-73.966504,40.794117,33.5],[-73.966932,40.793529,41.0],[-73.966943,40.793513,41.25],[-73.967338,40.792975,46.25],[-73.967449,40.792825,46.0],[-73.967872,40.792236,45.25],[-73.967934,40.792150,45.25],[-73.968309,40.791630,45.0],[-73.968384,40.791527,45.75],[-73.968786,40.790971,50.25],[-73.968844,40.790892,51.0],[-73.969245,40.790351,47.0],[-73.969311,40.790262,46.25],[-73.969691,40.789745,46.5],[-73.969769,40.789640,47.25],[-73.970150,40.789122,51.0],[-73.970224,40.789022,51.0],[-73.970614,40.788491,49.5],[-73.970689,40.788390,49.0],[-73.971098,40.787822,42.25],[-73.971141,40.787758,41.75],[-73.971549,40.787199,40.25],[-73.971602,40.787123,40.25],[-73.972025,40.786551,42.5],[-73.972093,40.786453,42.75],[-73.972530,40.785856,40.75],[-73.972591,40.785769,40.0],[-73.973006,40.785201,35.5],[-73.973056,40.785130,35.0],[-73.973473,40.784565,33.75],[-73.973514,40.784507,33.75],[-73.973936,40.783930,35.0],[-73.973985,40.783864,35.25],[-73.974398,40.783295,36.25],[-73.974466,40.783203,36.0],[-73.974527,40.783122,35.75],[-73.974903,40.782594,37.75],[-73.975402,40.781917,41.25],[-73.975897,40.781231,42.75],[-73.976270,40.780725,36.75],[-73.976335,40.780639,36.75],[-73.975251,40.780184,44.5],[-73.974738,40.779968,43.75],[-73.973571,40.779478,33.5],[-73.973647,40.779376,33.75]]}}]}\n", + "plot_route(start_point, end_point)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Northbound route can follow the side of Central Park as there is a cycleway on the right hand side of the street here. See https://github.com/nrenner/brouter-web/issues/124." + ] + }, + { + "cell_type": "code", + "execution_count": 308, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "http://127.0.0.1:8000/#map=17/40.779388/-73.973672/OpenStreetMap&lonlats=-73.973672,40.779388|-73.960991,40.801791&profile=trekking-custom\n" + ] + }, + { + "data": { + "text/html": [ + "
" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 308, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "start_point = [-73.973672,40.779388]\n", + "end_point = [-73.960991,40.801791]\n", + "plot_route(start_point, end_point)" + ] + }, { "cell_type": "code", "execution_count": null,