| | | 1 | | using System.Collections.Generic; |
| | | 2 | | using Itinero.Indexes; |
| | | 3 | | |
| | | 4 | | namespace Itinero; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Defines router db settings. |
| | | 8 | | /// </summary> |
| | | 9 | | public class RouterDbConfiguration |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Gets or sets the zoom level. |
| | | 13 | | /// </summary> |
| | 427 | 14 | | public int Zoom { get; set; } = 14; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Gets or sets the maximum size of islands. |
| | | 18 | | /// </summary> |
| | 489 | 19 | | public int MaxIslandSize { get; set; } = 256; |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets or sets the initial edge types. |
| | | 23 | | /// </summary> |
| | 328 | 24 | | public AttributeSetIndex EdgeTypeIndex { get; set; } = new AttributeSetDictionaryIndex(); |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets or sets the edge type map. |
| | | 28 | | /// </summary> |
| | 167 | 29 | | public AttributeSetMap? EdgeTypeMap { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Gets or sets the initial turn cost types. |
| | | 33 | | /// </summary> |
| | 328 | 34 | | public AttributeSetIndex TurnCostTypeIndex { get; set; } = new AttributeSetDictionaryIndex(); |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Gets or sets the turn cost type map. |
| | | 38 | | /// </summary> |
| | 164 | 39 | | public AttributeSetMap? TurnCostTypeMap { get; set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets the default configuration. |
| | | 43 | | /// </summary> |
| | 297 | 44 | | public static RouterDbConfiguration Default() { return new() { Zoom = 14, MaxIslandSize = 1024 }; } |
| | | 45 | | } |