{"id":21699739,"url":"https://github.com/cage1016/cloudfunctions-google-maps-services","last_synced_at":"2026-05-19T07:31:00.328Z","repository":{"id":148246138,"uuid":"100505607","full_name":"cage1016/cloudfunctions-google-maps-services","owner":"cage1016","description":"fetch travel distances and duration by Google Maps Distance Matrix API via Google Cloud Functions","archived":false,"fork":false,"pushed_at":"2017-08-20T12:45:49.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T14:37:07.907Z","etag":null,"topics":["cloudfunctions","distancematrix-background","googlemaps"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cage1016.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-08-16T15:42:43.000Z","updated_at":"2018-05-22T10:54:40.000Z","dependencies_parsed_at":"2023-05-19T13:00:27.774Z","dependency_job_id":null,"html_url":"https://github.com/cage1016/cloudfunctions-google-maps-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cage1016/cloudfunctions-google-maps-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fcloudfunctions-google-maps-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fcloudfunctions-google-maps-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fcloudfunctions-google-maps-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fcloudfunctions-google-maps-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cage1016","download_url":"https://codeload.github.com/cage1016/cloudfunctions-google-maps-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fcloudfunctions-google-maps-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"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":["cloudfunctions","distancematrix-background","googlemaps"],"created_at":"2024-11-25T20:11:12.650Z","updated_at":"2026-05-19T07:31:00.290Z","avatar_url":"https://github.com/cage1016.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCP cloud functions google maps services\n\n\u003e fetch travel distances and duration by Google Maps Distance Matrix API via Google Cloud Functions\n\n```sh\n# addresses\n\n\"No. 227, Ruiguang Road, Neihu District, Taipei City, 114\",\n\"No. 106, Meishu East 2nd Road, Gushan District Kaohsiung City, 804\",\n\"No. 175, Section 1, Changrong Rd, East District Tainan City, 701\",\n\"No. 15, Alley 1, Lane 123, Section 5, Nanjing East Road, Songshan District Taipei City, 105\",\n\"No. 131, Wufu 4th Road, Yancheng District Kaohsiung City, 803\"\n```\n\n```sh\n# travel distrance and duration\n\nwaypoint1 → waypoint2, distance, duration\nNo. 227, Ruiguang Road, Neihu District, Taipei City, 114 → No. 106, Meishu East 2nd Road, Gushan District Kaohsiung City, 804,  352777, 13532\nNo. 227, Ruiguang Road, Neihu District, Taipei City, 114 → No. 175, Section 1, Changrong Rd, East District Tainan City, 701,  314041, 12166\nNo. 227, Ruiguang Road, Neihu District, Taipei City, 114 → No. 15, Alley 1, Lane 123, Section 5, Nanjing East Road, Songshan District Taipei City, 105,  5183, 786\nNo. 227, Ruiguang Road, Neihu District, Taipei City, 114 → No. 131, Wufu 4th Road, Yancheng District Kaohsiung City, 803,  356215, 14018\nNo. 106, Meishu East 2nd Road, Gushan District Kaohsiung City, 804 → No. 175, Section 1, Changrong Rd, East District Tainan City, 701,  46668, 3203\nNo. 106, Meishu East 2nd Road, Gushan District Kaohsiung City, 804 → No. 15, Alley 1, Lane 123, Section 5, Nanjing East Road, Songshan District Taipei City, 105,  355412, 14134\nNo. 106, Meishu East 2nd Road, Gushan District Kaohsiung City, 804 → No. 131, Wufu 4th Road, Yancheng District Kaohsiung City, 803,  4166, 748\nNo. 175, Section 1, Changrong Rd, East District Tainan City, 701 → No. 15, Alley 1, Lane 123, Section 5, Nanjing East Road, Songshan District Taipei City, 105,  314265, 12478\nNo. 175, Section 1, Changrong Rd, East District Tainan City, 701 → No. 131, Wufu 4th Road, Yancheng District Kaohsiung City, 803,  49930, 3339\nNo. 15, Alley 1, Lane 123, Section 5, Nanjing East Road, Songshan District Taipei City, 105 → No. 131, Wufu 4th Road, Yancheng District Kaohsiung City, 803,  359470, 14335\n```\n\n## Getting Started\n\n```sh\n# clone repo\n$ git git@github.com:cage1016/cloudfunctions-google-maps-services.git \u0026\u0026 cd cloudfunctions-google-maps-services\n\n# install node packages\n$ npm install\n```\n\nmodify `index.js` \u003cYOUR-GCP-API-KEY\u003e\n\n```js\nconst googleMapsClient = require('@google/maps').createClient({\n    key: '\u003cYOUR-GCP-API-KEY\u003e'\n})\n\n...\n```\n\n\n### distanceMatrix background\n\n\u003e modify `makefile` assign Google Cloud Storage Bucket you have\n\n```sh\n# deploy distanceMatrix\n$ make deploy_backend\n\n# call distanceMatrix\n$ make call_backend\n\n# log distanceMatrix\n$ make log_backend\n\n# show description of distanceMatrix function\n$ make describe_backend\n```\n\n### distanceMatrix background\n\n\u003e modify `https://\u003cYOUR_REGION\u003e-\u003cYOUR_PROJECT_ID\u003e.cloudfunctions.net/distanceMatrixHttp` endpoint after call `make deploy_http`\n\n```sh\n# deploy distanceMatrixHttp\n$ make deploy_http\n\n# call distanceMatrixHttp\n$ make call_http\n\n# log distanceMatrixHttp\n$ make log_http\n\n# show description of distanceMatrixHttp function\n$ make describe_http\n```\n\n## Reference\n- [googlemaps/google-maps-services-js: Node.js client library for Google Maps API Web Services](https://github.com/googlemaps/google-maps-services-js)\n- [Developer's Guide  |  Google Maps Distance Matrix API  |  Google Developers](https://developers.google.com/maps/documentation/distance-matrix/intro?hl=en)\n- [Google Cloud Functions Documentation  |  Cloud Functions  |  Google Cloud Platform](https://cloud.google.com/functions/docs/)\n\n## Author\n\n[kaichu.io](https://kaichu.io)\n\n## Licence\nMIT: [https://github.com/cage1016/cloudfunctions-google-maps-services/blob/master/LICENSE](https://github.com/cage1016/cloudfunctions-google-maps-services/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fcloudfunctions-google-maps-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcage1016%2Fcloudfunctions-google-maps-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fcloudfunctions-google-maps-services/lists"}