Esempio n. 1
0
        /// <summary>
        /// Calculates a match between the tags collection and the properties of the OpenLR location reference.
        /// </summary>
        /// <param name="tags"></param>
        /// <param name="fow"></param>
        /// <param name="frc"></param>
        /// <returns></returns>
        public override float MatchArc(TagsCollectionBase tags, FormOfWay fow, FunctionalRoadClass frc)
        {
            FormOfWay           actualFow;
            FunctionalRoadClass actualFrc;

            if (NWBMapping.ToOpenLR(tags, out actualFow, out actualFrc))
            { // a mapping was found. match and score.
                return(MatchScoring.MatchAndScore(frc, fow, actualFrc, actualFow));
            }
            return(0);
        }
Esempio n. 2
0
 /// <summary>
 /// Tries to match the given tags and figure out a corresponding frc and fow.
 /// </summary>
 /// <param name="tags"></param>
 /// <param name="frc"></param>
 /// <param name="fow"></param>
 /// <returns>False if no matching was found.</returns>
 public override bool TryMatching(TagsCollectionBase tags, out FunctionalRoadClass frc, out FormOfWay fow)
 {
     return(NWBMapping.ToOpenLR(tags, out fow, out frc));
 }