{"id":13701343,"url":"https://github.com/MarcusGitAccount/traffic-simulation-cluj-napoca","last_synced_at":"2025-05-04T21:30:46.557Z","repository":{"id":98979564,"uuid":"101973567","full_name":"MarcusGitAccount/traffic-simulation-cluj-napoca","owner":"MarcusGitAccount","description":"Prototyping a traffic simulator for Cluj-Napoca using html5 canvas and a lot of maths and basic AI.","archived":false,"fork":false,"pushed_at":"2017-12-18T11:05:29.000Z","size":664,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-13T07:35:51.625Z","etag":null,"topics":["artificial-intelligence","canvas","canvas2d","car","cluj-napoca","js","math","nodejs","prototype","road","roads","traffic","traffic-simulation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcusGitAccount.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-08-31T07:39:59.000Z","updated_at":"2022-04-18T22:56:01.000Z","dependencies_parsed_at":"2023-04-26T01:31:49.190Z","dependency_job_id":null,"html_url":"https://github.com/MarcusGitAccount/traffic-simulation-cluj-napoca","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":"0.18965517241379315","last_synced_commit":"027f05a620b43db91639a0381187d4ae9759d17e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGitAccount%2Ftraffic-simulation-cluj-napoca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGitAccount%2Ftraffic-simulation-cluj-napoca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGitAccount%2Ftraffic-simulation-cluj-napoca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGitAccount%2Ftraffic-simulation-cluj-napoca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcusGitAccount","download_url":"https://codeload.github.com/MarcusGitAccount/traffic-simulation-cluj-napoca/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252403697,"owners_count":21742413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","canvas","canvas2d","car","cluj-napoca","js","math","nodejs","prototype","road","roads","traffic","traffic-simulation"],"created_at":"2024-08-02T20:01:31.022Z","updated_at":"2025-05-04T21:30:46.244Z","avatar_url":"https://github.com/MarcusGitAccount.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Traffic Simulator for Cluj-Napoca\n\n# !! Not fully documented repo, future updates will fix this.\n\n\n## About\n\nThis projects aims to create a traffic simulator for Cluj-Napoca, Romania. The firsts steps are to choose a zone to represent(in this case Mihai Viteazu Square, main central area of the town as seen in the printscreen below) on the scene(canvas) and create a prototype that will be used in the near future to develop the traffic AI and roads and road logic.\n\nhttp://prntscr.com/gke16s\n\n## Currently developed\n\n- Roadsystem created with a multigraph and linked lists of 2D vectors. (as seen here: http://prntscr.com/h6ht77)\n- Math utils for linear algebra problems that occured during the project development and more.\n- Mockup api for fetching the points for the roads.\n- Data structures such as Queue, Stack, BinaryHeap, PriorityQueue, LinkedList, Multigraph etc..\n- Models such as Road, Car (they are currently in development)\n\n## Currently working on:\n\n- Updating the Car model and creating the AI for cars. (will be using graphs to easy work with distances between cars)\n- Updating the Road model\n- Enhancing the API.\n- 2D Car representation and physics (acceleration, deceleration, braking, ground friction, steering, maintaining distance from\n  objects near, overtaking other cars in the same lane, changing lanes, etc..)\n - Creating a 2D Vector model with the basic operations needed and putting togheter the existing utilitary functions in the the class Vector2D\n - Changing the road friction based on the weather type(dry road = standard, wet road, snowy, etc..)\n\n## TO-DO:\n\n- create a user dashboard for inserting multiple cars\n- create an interface for users to select the area of the city to simulate traffic on\n- create weather conditions\n- add road obstacles\n\n\n## Installation\n\n- clone the repo\n- npm i\n- npm start\n\n_Notes_: \n- _1°_. You may have to change the environment variables IP and PORT as they are by default set to 0.0.0.0 and 8080.\n- _2°_. No transcripters/loaders such as babel are used to transforms the ES6 code. The project makes use of the ES6 module system and await/async implemented in Chromes 61's V8 engine.\n- _3°_. The api is currently just a mockup that sends data collected from Google Maps by hand. :(\n\n## Technologies used:\n- NodeJS version \u003e 8.5.0\n- ES6 JS\n- 2D canvas api\n\n## License\n\n[License link(gplv3)](https://github.com/MarcusGitAccount/traffic-simulation-cluj-napoca/blob/master/gplv3.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcusGitAccount%2Ftraffic-simulation-cluj-napoca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMarcusGitAccount%2Ftraffic-simulation-cluj-napoca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMarcusGitAccount%2Ftraffic-simulation-cluj-napoca/lists"}