/// <summary> /// Direct turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="streetCountBeforeTurn"></param> /// <param name="streetTo"></param> /// <param name="direction"></param> /// <param name="list"></param> /// <returns></returns> public Instruction GenerateDirectTurn(Instruction instruction, int streetCountBeforeTurn, List<KeyValuePair<string, string>> streetTo, RelativeDirectionEnum direction, List<PointPoi> list) { instruction.Text = string.Format("GenerateDirectTurn:{0}_{1}_{2}", streetCountBeforeTurn, direction.ToString(), list.Count); return instruction; }
/// <summary> /// Generates a simple turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="direction"></param> /// <returns></returns> public Instruction GenerateSimpleTurn(Instruction instruction, RelativeDirectionEnum direction) { instruction.Text = string.Format("GenerateSimpleTurn:{0}", direction.ToString()); instruction.Extras = new Dictionary <string, object>(); instruction.Extras.Add("direction", direction); return(instruction); }
/// <summary> /// Direct turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="streetCountBeforeTurn"></param> /// <param name="streetTo"></param> /// <param name="direction"></param> /// <param name="list"></param> /// <returns></returns> public Instruction GenerateDirectTurn(Instruction instruction, int streetCountBeforeTurn, TagsCollection streetTo, RelativeDirectionEnum direction, List <PointPoi> list) { instruction.Text = string.Format("GenerateDirectTurn:{0}_{1}_{2}", streetCountBeforeTurn, direction.ToString(), list.Count); instruction.Extras = new Dictionary <string, object>(); instruction.Extras.Add("streetCountBeforeTurn", streetCountBeforeTurn); instruction.Extras.Add("streetTo", streetTo); instruction.Extras.Add("direction", direction); instruction.Extras.Add("list", list); return(instruction); }
/// <summary> /// Direct turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="streetCountBeforeTurn"></param> /// <param name="streetTo"></param> /// <param name="direction"></param> /// <param name="list"></param> /// <returns></returns> public Instruction GenerateDirectTurn(Instruction instruction, int streetCountBeforeTurn, TagsCollection streetTo, RelativeDirectionEnum direction, List<PointPoi> list) { instruction.Text = string.Format("GenerateDirectTurn:{0}_{1}_{2}", streetCountBeforeTurn, direction.ToString(), list.Count); instruction.Extras = new Dictionary<string, object>(); instruction.Extras.Add("streetCountBeforeTurn", streetCountBeforeTurn); instruction.Extras.Add("streetTo", streetTo); instruction.Extras.Add("direction", direction); instruction.Extras.Add("list", list); return instruction; }
/// <summary> /// Generates a simple turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="direction"></param> /// <returns></returns> public Instruction GenerateSimpleTurn(Instruction instruction, RelativeDirectionEnum direction) { instruction.Text = string.Format("GenerateSimpleTurn:{0}", direction.ToString()); return instruction; }
/// <summary> /// Generates a simple turn instruction. /// </summary> /// <param name="instruction"></param> /// <param name="direction"></param> /// <returns></returns> public Instruction GenerateSimpleTurn(Instruction instruction, RelativeDirectionEnum direction) { instruction.Text = string.Format("GenerateSimpleTurn:{0}", direction.ToString()); instruction.Extras = new Dictionary<string, object>(); instruction.Extras.Add("direction", direction); return instruction; }