public RouterDb(MemoryMap map, RoutingNetworkProfile profile, float maxEdgeDistance = 5000f) { this._network = new RoutingNetwork(map, profile, maxEdgeDistance); this._edgeProfiles = new AttributesIndex(map, AttributesIndexMode.ReverseAll | AttributesIndexMode.IncreaseOne); this._meta = new AttributesIndex(map, AttributesIndexMode.ReverseAll); this._dbMeta = (TagsCollectionBase) new TagsCollection(); this._supportedProfiles = new HashSet <string>(); this._contracted = new Dictionary <string, DirectedMetaGraph>(); this._guid = Guid.NewGuid(); }
/// <summary> /// Creates a new router database. /// </summary> public RouterDb(MemoryMap map, RoutingNetworkProfile profile, float maxEdgeDistance = Constants.DefaultMaxEdgeDistance) { _network = new RoutingNetwork(map, profile, maxEdgeDistance); _edgeProfiles = new AttributesIndex(map, AttributesIndexMode.IncreaseOne | AttributesIndexMode.ReverseCollectionIndex | AttributesIndexMode.ReverseStringIndex); _meta = new AttributesIndex(map); _dbMeta = new AttributeCollection(); _supportedProfiles = new HashSet <string>(); _contracted = new Dictionary <string, ContractedDb>(); _restrictionDbs = new Dictionary <string, RestrictionsDb>(); _shortcutsDbs = new Dictionary <string, ShortcutsDb>(); _guid = Guid.NewGuid(); }