{"id":13645369,"url":"https://github.com/ar-android/DrawRouteMaps","last_synced_at":"2025-04-21T14:30:35.124Z","repository":{"id":91536363,"uuid":"73666024","full_name":"ar-android/DrawRouteMaps","owner":"ar-android","description":"Library for draw route maps between two point LatLng","archived":false,"fork":false,"pushed_at":"2019-08-01T19:08:17.000Z","size":1023,"stargazers_count":351,"open_issues_count":24,"forks_count":132,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-08-02T01:25:20.222Z","etag":null,"topics":["android","library","map"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ar-android.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":"2016-11-14T04:11:04.000Z","updated_at":"2024-05-27T17:07:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8797e1c-eec1-42ce-8efe-05dae5fcf832","html_url":"https://github.com/ar-android/DrawRouteMaps","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ar-android%2FDrawRouteMaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ar-android%2FDrawRouteMaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ar-android%2FDrawRouteMaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ar-android%2FDrawRouteMaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ar-android","download_url":"https://codeload.github.com/ar-android/DrawRouteMaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868062,"owners_count":17217017,"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":["android","library","map"],"created_at":"2024-08-02T01:02:34.125Z","updated_at":"2024-11-09T18:30:59.479Z","avatar_url":"https://github.com/ar-android.png","language":"Java","readme":"# DrawRouteMaps\nIf you want to add route maps feature in your apps you can use DrawRouteMaps to make you work more easier. This is lib will help you to draw route maps between two point LatLng.\n\n![alt tag](https://github.com/ar-android/DrawRouteMaps/raw/master/example-app.png)\n\n# Usage\nMake sure your app have allready enable Google Map API and Google Direction API. Then you can use this library and follow this task to integrate DrawRouteMaps into your project.\n\nAdd support jitpact repository in root build.gradle at the end of repositories:\n```gradle\nallprojects {\n   repositories {\n\tmaven { url \"https://jitpack.io\" }\n   }\n}\n```\nAdd dependencies :\n```gradle\ndependencies {\n    compile 'com.github.ar-android:DrawRouteMaps:1.0.0'\n}\n```\n\nIn Your GoogleMap Ready\n-----\n```java\n    @Override\n    public void onMapReady(GoogleMap googleMap) {\n        mMap = googleMap;\n        LatLng origin = new LatLng(-7.788969, 110.338382);\n        LatLng destination = new LatLng(-7.781200, 110.349709);\n        DrawRouteMaps.getInstance(this)\n                .draw(origin, destination, mMap);\n        DrawMarker.getInstance(this).draw(mMap, origin, R.drawable.marker_a, \"Origin Location\");\n        DrawMarker.getInstance(this).draw(mMap, destination, R.drawable.marker_b, \"Destination Location\");\n\n        LatLngBounds bounds = new LatLngBounds.Builder()\n                .include(origin)\n                .include(destination).build();\n        Point displaySize = new Point();\n        getWindowManager().getDefaultDisplay().getSize(displaySize);\n        mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, displaySize.x, 250, 30));\n    }\n```\nIf you want to change color of line route just add this in your resource\n```xml\n    \u003ccolor name=\"colorRouteLine\"\u003e#FF4081\u003c/color\u003e\n```\n\n# License\n\n    Copyright 2017 Ahmad Rosid\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["地图"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Far-android%2FDrawRouteMaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Far-android%2FDrawRouteMaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Far-android%2FDrawRouteMaps/lists"}