Re: [OSRM-talk] osrm-isochrone, how to install
There is no Project-OSRM/osrm-isochrone repo. - maybe you want - https://www.npmjs.com/package/osrm-isochrone - https://github.com/mapbox/osrm-isochrone There is also a experimental isochrone feature integrated into osrm, check this branch - https://github.com/Project-OSRM/osrm-backend/pull/3652 On Wed, Mar 8, 2017 at 4:02 PM, Jäger, Frank (KRZ) wrote: > Hi, > my third question for today is about "osrm-isochrone". > > Is this project still alive? > > $ npm install osrm-isochrone > Gets an ERR: stack Error: 403 status code downloading tarball > > $ git clone https://github.com/Project-OSRM/osrm-isochrone.git > Needs user an password. > > > Frank > > > ___ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk > > ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] routing profile tracktype
Have a look at profiles/lib/handlers.lua - in there you will find handlers for certain situations, for example here for surfaces https://github.com/Project-OSRM/osrm-backend/blob/5.6/profiles/lib/handlers.lua#L275-L293 All handlers are getting called in order here https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/foot.lua#L200-L240 and exit early if a handler returned false https://github.com/Project-OSRM/osrm-backend/blob/5.6/profiles/lib/handlers.lua#L505-L511 You can either add your own handler discarding ways completely or better penalize such ways by setting a high weight. Then the routing engine will always find a way but prefer ways with your tracktype criteria. Here's the Lua `result`'s attributes https://github.com/Project-OSRM/osrm-backend/blob/master/src/extractor/scripting_environment_lua.cpp#L309-L350 Make sure to test your profile locally on small extracts and / or in the debug map. Hope this helps as a start. Cheers, Daniel J H On Wed, Mar 8, 2017 at 3:33 PM, Jäger, Frank (KRZ) wrote: > Hallo, > I'm a new in this list and new in using osrm. > > My first routing-service is working now and embedded in an gis-application. > My attention is to find the "nearest school" for an address between some > alternatives. > > Next step is to fine-tune the foot-profile to a > "save-way-to-school-profile". > For example > > + highway=track;tracktype=grade1 is acceptable. The street has no name but > you can walk on without getting dirty shoes. > > - highway=track;tracktype=grade4 is not acceptable for routing 8 year old > children to school. > > Is there any example to use "tracktype" as a sub-type auf "track" in the > LUA-Profile to exclude this ways from being used? > > > Greetings > Frank Jäger > > ___ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk > > ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] osrm-isochrone, how to install
Hi, my third question for today is about "osrm-isochrone". Is this project still alive? $ npm install osrm-isochrone Gets an ERR: stack Error: 403 status code downloading tarball $ git clone https://github.com/Project-OSRM/osrm-isochrone.git Needs user an password. Frank smime.p7s Description: S/MIME cryptographic signature ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] profile-name in url
It's reserved for future use, see https://github.com/Project-OSRM/osrm-backend/issues/2512 Yes, at the moment you have to start one server per profile and dispatch with a HTTP server in front of it. If you use e.g. the node-osrm bindings [1] you can build a single express/koa HTTP server doing this dispatching internally. Feel free to edit the Wiki if you stumble over such issues :) Cheers, Daniel J H 1 https://github.com/Project-OSRM/node-osrm On Wed, Mar 8, 2017 at 3:35 PM, Jäger, Frank (KRZ) wrote: > Hallo, > while my first routing-service with osrm-backend now is running on my > server, I'm thinking to serve another profile. > > The documentation > https://github.com/Project-OSRM/osrm-backend/blob/master/ > docs/http.md#general-options > ... seems to have the profile-name in the URL. > > /{service}/{version}/{profile}/{coordinates} > > I wonder if {profile} points to the foldername, or to the filename? > No, nothing. It's just a trap! > > https://router.project-osrm.org/route/v1/foot/8.602208,52. > 248399;8.630159,52.241298?steps=false&alternatives= > false&geometries=geojson&overview=full > is just the same as > https://router.project-osrm.org/route/v1/banane/8.602208, > 52.248399;8.630159,52.241298?steps=false&alternatives= > false&geometries=geojson&overview=full > > The value of "profile" after "/v1/" has no function. Only the > service-port of the service maps to the computed profile, I think. > > So, for a second routing-profile I have to start a second service on a > another port? Is this true? > > It would save a lot of time for beginners like me to write this > information into the documentation. > It costs a lot of testing to get out of this "trap". > > > Greetings > Frank > > > ___ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk > > ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] profile-name in url
Hallo, while my first routing-service with osrm-backend now is running on my server, I'm thinking to serve another profile. The documentation https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#general-options ... seems to have the profile-name in the URL. /{service}/{version}/{profile}/{coordinates} I wonder if {profile} points to the foldername, or to the filename? No, nothing. It's just a trap! https://router.project-osrm.org/route/v1/foot/8.602208,52.248399;8.630159,52.241298?steps=false&alternatives=false&geometries=geojson&overview=full is just the same as https://router.project-osrm.org/route/v1/banane/8.602208,52.248399;8.630159,52.241298?steps=false&alternatives=false&geometries=geojson&overview=full The value of "profile" after "/v1/" has no function. Only the service-port of the service maps to the computed profile, I think. So, for a second routing-profile I have to start a second service on a another port? Is this true? It would save a lot of time for beginners like me to write this information into the documentation. It costs a lot of testing to get out of this "trap". Greetings Frank smime.p7s Description: S/MIME cryptographic signature ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] routing profile tracktype
Hallo, I'm a new in this list and new in using osrm. My first routing-service is working now and embedded in an gis-application. My attention is to find the "nearest school" for an address between some alternatives. Next step is to fine-tune the foot-profile to a "save-way-to-school-profile". For example + highway=track;tracktype=grade1 is acceptable. The street has no name but you can walk on without getting dirty shoes. - highway=track;tracktype=grade4 is not acceptable for routing 8 year old children to school. Is there any example to use "tracktype" as a sub-type auf "track" in the LUA-Profile to exclude this ways from being used? Greetings Frank Jäger smime.p7s Description: S/MIME cryptographic signature ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk