{"id":19881444,"url":"https://github.com/giscience/socialmedia2traffic-webmap-server","last_synced_at":"2025-10-26T18:06:08.938Z","repository":{"id":44883005,"uuid":"450048430","full_name":"GIScience/socialmedia2traffic-webmap-server","owner":"GIScience","description":"A sample ExpressJS server, copied from EDH JRC codebase, to access mbtiles for global traffic map visualisation.","archived":false,"fork":false,"pushed_at":"2022-01-20T19:32:31.000Z","size":15553,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-11T18:13:06.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GIScience.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}},"created_at":"2022-01-20T10:19:52.000Z","updated_at":"2022-01-20T13:57:36.000Z","dependencies_parsed_at":"2022-07-21T15:03:02.959Z","dependency_job_id":null,"html_url":"https://github.com/GIScience/socialmedia2traffic-webmap-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fsocialmedia2traffic-webmap-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fsocialmedia2traffic-webmap-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fsocialmedia2traffic-webmap-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fsocialmedia2traffic-webmap-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GIScience","download_url":"https://codeload.github.com/GIScience/socialmedia2traffic-webmap-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309105,"owners_count":19941725,"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":[],"created_at":"2024-11-12T17:14:17.825Z","updated_at":"2025-10-26T18:06:03.911Z","avatar_url":"https://github.com/GIScience.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socialmedia2traffic-webmap-server\nA sample ExpressJS server, copied from EDH JRC codebase, to access mbtiles for global traffic map visualisation.\n\n## Generate MBTiles ##\n\n```sh\ntippecanoe -e /\u003cpath\u003e/mbtiles/ /\u003cpath\u003e/sm2t-traffic.geojson -Z0 -z13 -d19 -B0 -pk -pf -pC -F\n```\n\n## MBTiles Endpoint: ##\n\n```sh\nhttp://localhost:8081/api/v0.1/mbtile?z=10\u0026x=270\u0026y=390\n```\n\n## Run Server using PM2: ##\n\nRun the following command to generate pm2 startup command\n\n```sh\ncd  \n```\n\n```sh\npm2 startup\n```\n\nCopy the output of that command and paste it back into the terminal. This configures pm2 to run as a daemon service.\n\nRun server server.js script using full server.js path (wrt to current root path. Note that /home/user is not being used in path as default path on system reboot is that only). Following command will spin up #cores-1 number of clusters. For SM2T this is the preferred mode. Note to update pm2.config.js for instances value accordingly. Use following command if want to use all cores. Note to update pm2.config.js for instances value accordingly.\n\n```sh\npm2 restart /home/zia/sm2t-webmap-vectiles-server/sm2t-server/pm2.config.js --env production -i max --max-memory-restart 64G \n```\n\n```sh\npm2 save\n```\n\n## Webmap html ##\n\nwebmap/index.html can be used to visualise traffic pbf files.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscience%2Fsocialmedia2traffic-webmap-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiscience%2Fsocialmedia2traffic-webmap-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscience%2Fsocialmedia2traffic-webmap-server/lists"}