Comments (9)
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.
@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.
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.
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.
@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.
Hi @agrignard , I confirm that this should be the repo of reference. Where is the issue? Are people using other repo?
from csl_hcmc.
@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.
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.
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)
- GIS file for 4 scenarios HOT 14
- OD matrices HOT 1
- Aggregate survey data to crate ward level home, work and O-D files HOT 26
- Define the land use types using the CityScope Types system HOT 49
- POIs outside D4 HOT 2
- Rasterization of the 4 scenario in a CityScope Grid
- Building layer consistency HOT 2
- Road Network consistency HOT 1
- LandUse consistency HOT 2
- Decision between 3, 4 or 6 scenarios HOT 5
- 3 Scenarios. Text for the demo HOT 2
- Triggering of 3 static scenarios HOT 3
- Normalisation of the indicators in static scenarios
- Use buildings shapefiles instead of land use shapefiles for the static scenario analysis HOT 1
- Validate OSM road network OR map the road network shapefiles to node table and link table format HOT 1
- Use separate density values for residents and employment HOT 1
- Displacement/Gentrification Index - KAREN CHAPPLE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csl_hcmc.