Giter Club home page Giter Club logo

Comments (4)

mmorang avatar mmorang commented on June 23, 2024

Yes, definitely. You can set the time of day for the OD Cost Matrix, which will be interpreted as the start time for all origins.

If you just want to hard-code something for your specific analysis, you can change it in the od_config.py file:
image

Use a datetime.datetime(). You can set a specific date, or you can specify a generic weekday or "today." For one of these generic weekdays, you have to use our special reserved dates in 1899/1900. I just noticed that those are not documented in the solver object documentation (something I will fix for the next release), but the list of those dates is included in the Make OD Cost Matrix Analysis Layer documentation for the time_of_day parameter and is the same.
image

If you want to make it a user parameter, you will need to add a parameter to the script tool definition and pass it all the way through the stack like how it's already done for travel mode, cutoff, and number of destinations to find.

Setting a time of day will not have an impact on the OD Cost Matrix results unless the impedance attribute being used has some time-dependent properties, for example, if you're using traffic or public transit data.

from large-network-analysis-tools.

michaeldouble07 avatar michaeldouble07 commented on June 23, 2024

Thanks for the info, but is it possible for you to add this feature, so that we can change the time with the tool? I would be using this for using the traffic data, that is why I would need it. I would greatly appreciate if you could add this change. I have no experience with creating tool's, that is why I am asking.

from large-network-analysis-tools.

mmorang avatar mmorang commented on June 23, 2024

I'll see what I can do.

from large-network-analysis-tools.

mmorang avatar mmorang commented on June 23, 2024

Okay, the tool code has been updated to expose time of day as a user parameter. You can download the update from https://github.com/Esri/large-network-analysis-tools/releases/ or clone the repo.

from large-network-analysis-tools.

Related Issues (11)

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.