Giter Club home page Giter Club logo

Comments (9)

doorleyr avatar doorleyr commented on June 20, 2024 1

I'll hopefully have an endpoint you can read from (eg. ...api/table_table_name/od) by the end of the week.

from csl_hcmc.

doorleyr avatar doorleyr commented on June 20, 2024

@agrignard
A first pass of this is now ready. I set up a new table hcmc_gama for testing and the endpoint you can read from to get the trip demand information is here:
https://cityio.media.mit.edu/api/table/hcmc_gama/od

This is currently live and will update in response to any changes in the GEOGRID. Whenever the hash changes, you can read and make an update:
https://cityio.media.mit.edu/api/table/hcmc_rd/meta/hashes/od

The O-D information is a list of 'agents' with the following attributes:
home_geoid: the home location of the agent. This refers to a polygon in zones.geojson
work_geoid: the work location of the agent. This refers to a polygon in zones.geojson
age: agent's age
naics: naics code of agent's occupation
Mode: predicted mode of transportation

The home and work locations refer to polygons in the zones.geojson file which can be found here:
https://github.com/CityScope/CSL_HCMC/blob/main/outputs/zones.geojson
On initialising the simulation, each agent should be assigned a home and work location inside the appropriate polygon.

In order to allow for simulating trips to and from the rest of the city (outside of District 4) without making the network too huge, I also created a multi-scale road network. This network consists of a detailed road network within district 4 and a coarse road network in the rest of the city. The geojson can be found here:
https://github.com/CityScope/CSL_HCMC/blob/main/outputs/network.geojson

Let me know how this structure works for you and we can iterate if necessary. I though of one potential issue: you mentioned using GamaBrix to build the simulation. However, if I understand correctly, Gama-Brix works by reading updates to the GEOGRIDDATA field. To read from the /od endpoint instead is then going to require some modifications.

from csl_hcmc.

agrignard avatar agrignard commented on June 20, 2024

Awesome! Let's see how this can be plugged in the model developed with @Hai-Hoang-88 (by the way @Hai-Hoang-88 can you commit your model ?)

from csl_hcmc.

Hai-Hoang-88 avatar Hai-Hoang-88 commented on June 20, 2024

Thank you @doorleyr and @agrignard. The ABM district 4 was created by Tiep.

Please kindly take a look at his work:
https://github.com/csl-hcmc/Analysis/tree/master/District4/models

from csl_hcmc.

agrignard avatar agrignard commented on June 20, 2024

@Hai-Hoang-88 why Tiep is not able to commit on this repo?

So as it seems that it's difficult for you to push in this repo here is a first push of a preliminary Gama model in this commit
7df548b

If you want to have some intermediary/internal iteration on your forked repo https://github.com/csl-hcmc/Analysis/tree/master/District4/models thats' fine (even though I am personnaly not in favor in this) but the reference model will still be in the original repo

@LAAP can you confirm (or not? in this case we will need to see how to manage this) to the team that we keep this repo as the reference one ?

from csl_hcmc.

LAAP avatar LAAP commented on June 20, 2024

Hi @agrignard , I confirm that this should be the repo of reference. Where is the issue? Are people using other repo?

from csl_hcmc.

agrignard avatar agrignard commented on June 20, 2024

@LAAP Yes there is other repo as mention in the comment just above there is also this github
https://github.com/csl-hcmc/Analysis/tree/master/District4/models

@Hai-Hoang-88 can you clarify the situation so we knwo on which repo to work and ideally be sure that everything is update HERE (I mean this one https://github.com/CityScope/CSL_HCMC)

from csl_hcmc.

Hai-Hoang-88 avatar Hai-Hoang-88 commented on June 20, 2024

For me, I don't mind about placeholder for sour-codes. It will be awesome to be centralized in one place. And Tiep is in charged of commit the GAMA. In Wednesday, we may have a little time to discuss about this management.

from csl_hcmc.

agrignard avatar agrignard commented on June 20, 2024

Dear all, I was curious to see if there any udpate on this part. According to @Hai-Hoang-88 , Tiep might be working on this part. @tiep le us know if you have nay question or need any help.

from csl_hcmc.

Related Issues (18)

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.