Giter Site home page Giter Site logo

Comments (5)

kernelshreyak avatar kernelshreyak commented on May 29, 2024

Test first on QGIS with vector layer or GeoJSON of railway routes

from world-travel-simulator.

kernelshreyak avatar kernelshreyak commented on May 29, 2024

image
Indian railway stations and routes data in GeoJSON tested on QGIS

from world-travel-simulator.

kernelshreyak avatar kernelshreyak commented on May 29, 2024

Need to have an algorithm which can return the route based on arrival and departure stations extending over 7536f24

The routes are in the GeoJSON which need to be matched and queried based on coordinates of arrival and departure stations. The route should be an array of coordinates similar to other vehicle types.
Since matched routes will likely be an array of LineString data, it needs to be compacted into 1D coordinate array

from world-travel-simulator.

kernelshreyak avatar kernelshreyak commented on May 29, 2024

As per the updated stations GeoJSON, update the train routing algorithm to use exact matching instead of nearest distance because stations will always lie on one or more linestrings

from world-travel-simulator.

kernelshreyak avatar kernelshreyak commented on May 29, 2024

Routing algorithm is improved in 5b354f6
But, destination and arrival station selection is not accurate yet. Maybe need to sort the stations array to better get lowest distance match more accurate.
Also, the route found is not optimal (this will be handled in new issue)

from world-travel-simulator.

Related Issues (8)

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.