{"id":21623203,"url":"https://github.com/explooosion/agm-direction-docs","last_synced_at":"2026-04-13T09:31:40.585Z","repository":{"id":66233991,"uuid":"135194926","full_name":"explooosion/Agm-Direction-Docs","owner":"explooosion","description":"Document for Agm-Direction","archived":false,"fork":false,"pushed_at":"2019-08-30T08:22:39.000Z","size":1219,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T10:29:29.466Z","etag":null,"topics":["agm","agm-direction","doc"],"latest_commit_sha":null,"homepage":"http://robby570.tw/Agm-Direction-Docs/","language":"HTML","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/explooosion.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":"2018-05-28T18:17:53.000Z","updated_at":"2019-08-30T08:22:41.000Z","dependencies_parsed_at":"2023-02-24T01:00:56.637Z","dependency_job_id":null,"html_url":"https://github.com/explooosion/Agm-Direction-Docs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/explooosion/Agm-Direction-Docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2FAgm-Direction-Docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2FAgm-Direction-Docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2FAgm-Direction-Docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2FAgm-Direction-Docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explooosion","download_url":"https://codeload.github.com/explooosion/Agm-Direction-Docs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2FAgm-Direction-Docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["agm","agm-direction","doc"],"created_at":"2024-11-25T00:11:57.951Z","updated_at":"2026-04-13T09:31:40.565Z","avatar_url":"https://github.com/explooosion.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agm-Direction\n\n[![npm version](https://badge.fury.io/js/agm-direction.svg)](https://badge.fury.io/js/agm-direction)\n[![npm](https://img.shields.io/npm/dm/localeval.svg)](https://github.com/explooosion/Agm-Direction)\n[![Dependency Status](https://david-dm.org/explooosion/Agm-Direction.svg?theme=shields.io)](https://david-dm.org/explooosion/Agm-Direction)\n[![Build Status](https://travis-ci.org/explooosion/Agm-Direction.svg?branch=master)](https://travis-ci.org/explooosion/Agm-Direction)\n[![GitHub license](https://img.shields.io/github/license/explooosion/Agm-Direction.svg)](https://github.com/explooosion/Agm-Direction)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\n\n[Agm-Direction](https://github.com/explooosion/Agm-Direction) is the directive for [@agm/core](https://github.com/SebastianM/angular-google-maps) (not official)\n\n- Angular 2~7\n- Google Map API\n- [Playground](https://stackblitz.com/edit/agm-direction-demo)  \n\nHow to use?  \n👉 [Start Reading](https://robby570.tw/Agm-Direction-Docs/)\n\n![Agm-Direction](https://i.imgur.com/DCIoXqS.jpg)\n\n## Installation\n\nInstallation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n- Use npm\n  ```bash\n  npm install --save @agm/core\n  npm install --save agm-direction\n  ```\n\n- Use yarn\n  ```bash\n  yarn add @agm/core\n  yarn add agm-direction\n  ```\n\n## Importing Modules\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser'\nimport { NgModule } from '@angular/core'\nimport { AppComponent } from './app.component'\n\nimport { AgmCoreModule } from '@agm/core'            // @agm/core\nimport { AgmDirectionModule } from 'agm-direction'   // agm-direction\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    AgmCoreModule.forRoot({ // @agm/core\n      apiKey: 'your key',\n    }),\n    AgmDirectionModule,     // agm-direction\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n## Usage\n\nHTML\n\n```html\n\u003cagm-map [latitude]=\"lat\" [longitude]=\"lng\"\u003e\n  \u003cagm-direction [origin]=\"origin\" [destination]=\"destination\"\u003e\n  \u003c/agm-direction\u003e\n\u003c/agm-map\u003e\n```\n\nCSS\n\n```css\nagm-map {\n    height: 400px;\n}\n```\n\nTS\n\n```typescript\npublic lat: Number = 24.799448\npublic lng: Number = 120.979021\n\npublic origin: any\npublic destination: any\n\nngOnInit() {\n  this.getDirection()\n}\n\ngetDirection() {\n  this.origin = { lat: 24.799448, lng: 120.979021 }\n  this.destination = { lat: 24.799524, lng: 120.975017 }\n\n  // this.origin = 'Taipei Main Station'\n  // this.destination = 'Taiwan Presidential Office'\n}\n```\n\n## Document\n- Document [Agm-Direction-Docs](https://robby570.tw/Agm-Direction-Docs/)\n- Less useful [AgmDirectionModule](https://robby570.tw/Agm-Direction/)\n\n## Development\n\n👉 [Playground](https://github.com/explooosion/Agm-Direction/tree/master/playground)\n\n```bash\ngit clone https://github.com/explooosion/Agm-Direction.git\n```\n\n```bash\ncd playground\n```\n\n```bash\nyarn start\n```\n\n## Development Doc \nThis library generated by [angular-library-starter](https://github.com/robisim74/angular-library-starter).\n\n### Document \n\n```bash\ngit clone https://github.com/explooosion/Agm-Direction-Docs.git\n```\n\n```bash\nnpm install -g gitbook-cli\n```\n\n```bash\ngitbook update\n```\n\n```bash\ngitbook install\n```\n\n```bash\nyarn dev\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplooosion%2Fagm-direction-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplooosion%2Fagm-direction-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplooosion%2Fagm-direction-docs/lists"}