itinero / transit Goto Github PK
View Code? Open in Web Editor NEWTransit routing module.
License: Other
Transit routing module.
License: Other
Figure out why routing is broken when loading multiple operators. In the functional tests it seems that routing is breaking when a second operator is added here:
https://github.com/itinero/transit/blob/develop/test/Itinero.Transit.Test.Functional/Program.cs#L63
Include a default transferprofile in the multimodal routerdb. It should be possible to deserialize with all settings included.
Figure out a way to make the current data structures more dynamic and allow loading connections and updates to the connections on-the-fly.
Add support for shapes in GTFS:
Keep status about stops and shapes being sorted and throw exception when attempting to search for a stop or shape when not sorted.
The functional tests download a GTFS but it can changes continously to the latest version, making the tests fail after a while.
I want to know how to solve the problem ResolveMultipleAlgorithm.
In the 0.36 version is not supported.
I tried with the following code:
public static void AddStopLinksDb(this MultimodalDb db, Profile profile, float searchOffset = DefaultSearchOffset,
float maxDistance = DefaultMaxDistance, int maxRouterPoints = DefaultMaxRouterPoints)
{
var stopsDbEnumerator = db.TransitDb.GetStopsEnumerator();
var linksDb = new StopLinksDb(stopsDbEnumerator.Count, db.RouterDb, profile);
while (stopsDbEnumerator.MoveNext())
{
var stopId = stopsDbEnumerator.Id;
var multiResolver = new ResolveAlgorithm(db.RouterDb.Network.GeometricGraph,
stopsDbEnumerator.Latitude, stopsDbEnumerator.Longitude, searchOffset, maxDistance, (edge) =>
{
// get profile.
float distance;
ushort edgeProfileId;
Itinero.Data.Edges.EdgeDataSerializer.Deserialize(edge.Data[0],
out distance, out edgeProfileId);
var edgeProfile = db.RouterDb.EdgeProfiles.Get(edgeProfileId);
// get factor from profile.
if (profile.Factor(edgeProfile).Value <= 0)
{ // cannot be traversed by this profile.
return false;
}
// verify stoppable.
if (!profile.CanStopOn(edgeProfile))
{ // this profile cannot stop on this edge.
return false;
}
return true;
});
multiResolver.Run();
if (multiResolver.HasSucceeded)
{
// get the n-closest.
var closest = multiResolver.Result;
linksDb.Add((uint)stopId, closest);
}
}
db.AddStopLinksDb(linksDb);
}
but HasSucceeded is always false.
Thanks
I tried to run Itinero.Transit.Test.Functional.Program but have got an exception "Graph not sorted"
After that I tried to sort "belgium.a.routerdb" by
Itinero.Algorithms.Search.Hilbert.HilbertExtensions.Sort(routerDb);
but get another dividebyzeroexception in sorting
Any progress on this project? The project seems dead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.