{"id":15008641,"url":"https://github.com/liodali/osm-routing-client-dart","last_synced_at":"2025-04-09T16:05:31.818Z","repository":{"id":49652180,"uuid":"418111935","full_name":"liodali/OSM-Routing-Client-Dart","owner":"liodali","description":"flutter package for osrm client api and open source routing service","archived":false,"fork":false,"pushed_at":"2025-03-14T08:24:32.000Z","size":218,"stargazers_count":18,"open_issues_count":9,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T16:05:25.166Z","etag":null,"topics":["client-api","dart","flutter","osm","package","routing"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/routing_client_dart","language":"Dart","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/liodali.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-10-17T11:42:53.000Z","updated_at":"2025-03-14T08:24:36.000Z","dependencies_parsed_at":"2023-11-11T13:23:35.748Z","dependency_job_id":"4dce0691-fe7b-439f-94b2-1aaac92b9f7a","html_url":"https://github.com/liodali/OSM-Routing-Client-Dart","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":0.08823529411764708,"last_synced_commit":"ba33b7a66990f6ab2fb86bbff68ab05ce991ce70"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liodali%2FOSM-Routing-Client-Dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liodali%2FOSM-Routing-Client-Dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liodali%2FOSM-Routing-Client-Dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liodali%2FOSM-Routing-Client-Dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liodali","download_url":"https://codeload.github.com/liodali/OSM-Routing-Client-Dart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065288,"owners_count":21041871,"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":["client-api","dart","flutter","osm","package","routing"],"created_at":"2024-09-24T19:19:51.656Z","updated_at":"2025-04-09T16:05:31.813Z","avatar_url":"https://github.com/liodali.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Routing Client Dart Package\n![pub](https://img.shields.io/badge/pub-v1.0.7-blue)\n\n\n\u003e Package for osm routing client api \n\n\u003e we support routing API for osrm-backend\n\n\u003e also Valhalla Route API (more APIs will be added )\n\n\u003e openrouteservice (coming soon)\n\n\u003e from 1.0.0 instruction will be included directly when requesting the route\n\n\u003e you can use our osrm service or valhalla service directly insteado of our RoutingManager\n\n### client api support\n\n* OSRM Client Api \n  * route service\n  * trip service\n* Valhalla Client\n  * route service API\n\n## Installing\n\nAdd the following to your `pubspec.yaml` file:\n\n    dependencies:\n      routing_client_dart: ^1.0.7\n\n\n### example for osrm route service\n\n```dart\n    List\u003cLngLat\u003e waypoints = [\n      LngLat(lng: 13.388860, lat: 52.517037),\n      LngLat(lng: 13.397634, lat: 52.529407),\n      LngLat(lng: 13.428555, lat: 52.523219),\n    ];\n    final manager = RoutingManager();\n    final route = await manager.getRoute(\n      OSRMRequest.route(\n        waypoints: waypoints,\n        geometries: Geometries.polyline,\n        steps: true,\n        languages: Languages.en,\n      )\n    );\n```\n\n### example for osrm trip service\n\n```dart\n    List\u003cLngLat\u003e waypoints = [\n      LngLat(lng: 13.388860, lat: 52.517037),\n      LngLat(lng: 13.397634, lat: 52.529407),\n      LngLat(lng: 13.428555, lat: 52.523219),\n    ];\n    final manager = RoutingManager();\n    final road = await manager.getRoute(\n      OSRMRequest.trip(\n        waypoints: waypoints,\n        destination: DestinationGeoPointOption.last,\n        source: SourceGeoPointOption.first,\n        geometries: Geometries.polyline,\n        steps: true,\n        languages: Languages.en,\n        roundTrip:false,\n      )\n    );\n```\n\n### example for check Location in Road\n\n```dart\nfinal currentLocation = LngLat.fromList(lnglat: [13.389147, 52.527549]);\n    final isOnPath =\nawait roadManager.isOnPath(road, currentLocation, tolerance: 5);\n```\n\n### Example to get next navigation instruction of current Location\n\n\n\n```dart\nfinal currentLocation = LngLat.fromList(lnglat: [13.389147, 52.527549]);\n    final isOnPath =\nfinal instruction = await roadManager.nextInstruction(instructions, road, currentLocation, tolerance: 5);\n\n```\n**Warning** the precision of `LngLat` should be 5 if the road contain `polylineEncoded`, or the same precies as `LngLat` in `polylines`\n\n**Note** you can get some inaccurate information `nextInstruction`,for that we will be happy for yours contributions\n\n**Note** you can get voice instruction for valhalla instruction\n\n**Note** more documentation will be added to soon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliodali%2Fosm-routing-client-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliodali%2Fosm-routing-client-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliodali%2Fosm-routing-client-dart/lists"}