{"id":17047631,"url":"https://github.com/residentmario/subway-explorer-gmaps-proxy","last_synced_at":"2026-04-15T08:38:44.938Z","repository":{"id":66134361,"uuid":"121905512","full_name":"ResidentMario/subway-explorer-gmaps-proxy","owner":"ResidentMario","description":"Simple reverse proxy for the Google Maps Directions API service.","archived":false,"fork":false,"pushed_at":"2018-03-07T15:12:52.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T21:32:21.595Z","etag":null,"topics":[],"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/ResidentMario.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-18T00:44:51.000Z","updated_at":"2024-09-17T06:16:24.000Z","dependencies_parsed_at":"2023-05-04T08:31:28.838Z","dependency_job_id":null,"html_url":"https://github.com/ResidentMario/subway-explorer-gmaps-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ResidentMario/subway-explorer-gmaps-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fsubway-explorer-gmaps-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fsubway-explorer-gmaps-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fsubway-explorer-gmaps-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fsubway-explorer-gmaps-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ResidentMario","download_url":"https://codeload.github.com/ResidentMario/subway-explorer-gmaps-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fsubway-explorer-gmaps-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31833836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-14T09:49:52.371Z","updated_at":"2026-04-15T08:38:44.916Z","avatar_url":"https://github.com/ResidentMario.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About \n\nThis repository defines a reverse proxy service for the [Google Maps Directions API](https://developers.google.com/maps/documentation/directions/intro).\nIt is a service component used by the [`subway-explorer-webapp`](https://github.com/ResidentMario/subway-explorer-webapp), \nwhich uses this API to perform route selection in the application front-end.\n\nFor more information on why this exists, see the `README.md` in the `subway-explorer-webapp` repository.\n\n## Quickstart\n\nYou will need a [Google Maps Directions API](https://developers.google.com/maps/documentation/directions/) key. You will also need to have [Node.JS](https://nodejs.org/en/) installed.\n\nFirst, clone the repository:\n\n```sh\ngit clone https://github.com/ResidentMario/subway-explorer-gmaps-proxy.git\n```\n\nInstall the necessary libraries from the root folder:\n\n```\nnpm install\n```\n\nCreate an `.env` file in the root folder with your [Google Maps Directions API](https://developers.google.com/maps/documentation/directions/) credentials:\n\n```sh\nGOOGLE_MAPS_DIRECTIONS_API_KEY=YOUR_API_KEY\n```\n\nStart the service.\n\n```sh\nnode index.js\n```\n\nIt will accessible from `localhost:9000`. Here's one URL you can try, to make sure the service is up:\n\n```\nhttp://localhost:9000/starting_x=-73.954527\u0026starting_y=40.587243\u0026ending_x=-73.977756\u0026ending_y=40.687163\n```\n\n## Using the container\n\nThis repo contains a Docker file bundled with Node.JS and this application.\n\nTo build the container image, run the following from the root folder:\n\n    docker build -t residentmario/subway-explorer-gmaps-proxy .\n\nMake sure you have a `.env` file populated. Then, to run the container (pointing it to `localhost:49161`):\n\n    docker run -p 49161:9000 --env-file .env -d residentmario/subway-explorer-gmaps-proxy\n    \nYou can visit the following (port-forwarded) URI in the browser to verify that the connection is being served:\n\n```\nhttp://localhost:49161/starting_x=-73.954527\u0026starting_y=40.587243\u0026ending_x=-73.977756\u0026ending_y=40.687163\n```\n\nYou can also jump inside the container by running `docker exec -it 949cc5d81abe /bin/bash` (replacing the name with the \nname of the running image, discoverable via `docker ps`) and inspect the running processes to verify things are running \nas expected.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresidentmario%2Fsubway-explorer-gmaps-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresidentmario%2Fsubway-explorer-gmaps-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresidentmario%2Fsubway-explorer-gmaps-proxy/lists"}