{"id":21707332,"url":"https://github.com/marchdev-tk/google_directions_api","last_synced_at":"2025-04-12T16:16:22.933Z","repository":{"id":45713603,"uuid":"243980708","full_name":"marchdev-tk/google_directions_api","owner":"marchdev-tk","description":"The Directions API is a service that calculates directions between locations. You can search for directions for several modes of transportation, including transit, driving, walking, or cycling.","archived":false,"fork":false,"pushed_at":"2024-01-31T13:49:11.000Z","size":142,"stargazers_count":16,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T16:15:54.567Z","etag":null,"topics":["dart","dart2","dartlang","directions","directions-api","flutter","flutter-package","flutter-plugin","google-maps","google-maps-api"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marchdev-tk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-29T14:13:17.000Z","updated_at":"2024-10-14T11:12:55.000Z","dependencies_parsed_at":"2024-01-31T14:53:53.197Z","dependency_job_id":null,"html_url":"https://github.com/marchdev-tk/google_directions_api","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_directions_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_directions_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_directions_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchdev-tk%2Fgoogle_directions_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marchdev-tk","download_url":"https://codeload.github.com/marchdev-tk/google_directions_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594190,"owners_count":21130316,"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":["dart","dart2","dartlang","directions","directions-api","flutter","flutter-package","flutter-plugin","google-maps","google-maps-api"],"created_at":"2024-11-25T22:17:06.845Z","updated_at":"2025-04-12T16:16:22.909Z","avatar_url":"https://github.com/marchdev-tk.png","language":"Dart","readme":"# google_directions_api\n\n![Build](https://github.com/marchdev-tk/google_directions_api/workflows/build/badge.svg)\n[![Pub](https://img.shields.io/pub/v/google_directions_api.svg)](https://pub.dartlang.org/packages/google_directions_api)\n![GitHub](https://img.shields.io/github/license/marchdev-tk/google_directions_api)\n![GitHub stars](https://img.shields.io/github/stars/marchdev-tk/google_directions_api?style=social)\n\nThe Directions API is a service that calculates directions between locations. You can search for directions for several modes of transportation, including transit, driving, walking, or cycling.\n\n## Getting Started\n\nThe Directions API is a service that calculates directions between locations using an HTTP request.\n\nWith the Directions API, you can:\n\n * Search for directions for several modes of transportation, including transit, driving, walking or cycling.\n * Return multi-part directions using a series of waypoints.\n * Specify origins, destinations, and waypoints as text strings (e.g. \"Chicago, IL\" or \"Darwin, NT, Australia\"), or as latitude/longitude coordinates, or as place IDs.\n\nThe API returns the most efficient routes when calculating directions. Travel time is the primary factor optimized, but the API may also take into account other factors such as distance, number of turns and many more when deciding which route is the most efficient.\n\n**Note**: This service is **not designed to respond in real time to user input**. \n\nFor full info about Directions API visit official [documentation](https://developers.google.com/maps/documentation/directions/intro#top_of_page)\n\n### Usage\n\n```dart\nimport 'package:google_directions_api/google_directions_api.dart';\n\nvoid main() {\n  DirectionsService.init('API_KEY');\n\n  final directionsService = DirectionsService();\n\n  final request = DirectionsRequest(\n    origin: 'New York',\n    destination: 'San Francisco',\n    travelMode: TravelMode.driving,\n  );\n\n  directionsService.route(request,\n      (DirectionsResult response, DirectionsStatus status) {\n    if (status == DirectionsStatus.ok) {\n      // do something with successful response\n    } else {\n      // do something with error response\n    }\n  });\n}\n```\n\n## Feature requests and Bug reports\n\nFeel free to post a feature requests or report a bug [here](https://github.com/marchdev-tk/google_directions_api/issues).\n\n## TODO\n\n* Write tests via mocks\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fgoogle_directions_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarchdev-tk%2Fgoogle_directions_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchdev-tk%2Fgoogle_directions_api/lists"}