> Yeah, I should had at least described my problem. I intended to use > Graphhopper for an application aimed to finding routes for user with > disabilities, according to their preferences/ability to traverse a > given obstacle. My idea was to use a custom weighting that verifies > what kind of edge it's examining, then assignes a multiplier to the > weight in accordance to a profile (basically, a shortest weighting > with the added multiplier feature). Ideally, I wanted to save the flag > value of the type of way within an encoder, then compare the flag > value of an edge during runtime. Is such thing doable, or am I getting > something wrong? > Thanks in advance.
You can have a look into the BikeFlagEncoder on how the 'priority' (your multiplier) is handled there Peter On 22.12.2014 11:54, Account Università Villa Luca wrote: > Il 22/12/2014 11:06, Peter ha scritto: >> (your question was a bit hidden, try to make it more clearer next time) >> >>> Regarding the storage, what is the correct way to save my informations? >> You can use a custom DataAccess (efficient way for graphhopper) but that >> is probably to hard to develop so you can use MapDB or whatever storage >> you like >> >> Regards, >> Peter >> >> >> On 22.12.2014 11:02, Account Università Villa Luca wrote: >>> Il 15/12/2014 17:39, Peter ha scritto: >>>>> The information is already stored in a particular class, or do I need >>>>> to create a new one? And in what way GraphHopper can extract these >>>>> informations? >>>>> >>>> Currently you have to build everything yourself and hook a storage >>>> e.g. >>>> into encoder.applyWayTags( OSMWay way, EdgeIteratorState edge ) >>>> We'll add a helper TagStorage in the very near future >>>> >>>> Peter >>>> >>>> >>>> _______________________________________________ >>>> GraphHopper mailing list >>>> [email protected] >>>> https://lists.openstreetmap.org/listinfo/graphhopper >>> Regarding the storage, what is the correct way to save my informations? >>> >>> _______________________________________________ >>> GraphHopper mailing list >>> [email protected] >>> https://lists.openstreetmap.org/listinfo/graphhopper >> >> _______________________________________________ >> GraphHopper mailing list >> [email protected] >> https://lists.openstreetmap.org/listinfo/graphhopper > Yeah, I should had at least described my problem. I intended to use > Graphhopper for an application aimed to finding routes for user with > disabilities, according to their preferences/ability to traverse a > given obstacle. My idea was to use a custom weighting that verifies > what kind of edge it's examining, then assignes a multiplier to the > weight in accordance to a profile (basically, a shortest weighting > with the added multiplier feature). Ideally, I wanted to save the flag > value of the type of way within an encoder, then compare the flag > value of an edge during runtime. Is such thing doable, or am I getting > something wrong? > Thanks in advance. > > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper _______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
