Giter Club home page Giter Club logo

transit's People

Contributors

xivk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

transit's Issues

Include parking data in multimodal db.

  • Include parking data with attached meta-data
    • Vehicle types allowed.
    • Vehicle types allowed for parking.
  • Include P+R data.
    • Add extra fields, for example connected transit stops.

Add support for shapes.

Add support for shapes in GTFS:

  • Load the shapes into the transitdb.
    • Make sure unique shapes are stored only once and between each two stops.
  • Output the shapes along with the routes.
  • Make the shapes queryable by bounding box.

ResolveMultipleAlgorithm not found

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

Functional Test failed at db.AddStopLinksDb

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.