Google-Directions-Android alternatives and similar packages
Based on the "Maps" category.
Alternatively, view Google-Directions-Android alternatives based on common mentions on social networks and blogs.
-
Smart Location Library
Android library project that lets you manage the location updates to be as painless as possible -
Android Maps Extensions
Android Maps Extensions is a library extending capabilities of Google Maps Android API v2. -
MapScaleView
Scale bar for Android Maps (Google Maps, OSM, MapBox, Yandex) -
drawroute
DrawRoute wraps Google Directions API (https://developers.google.com/maps/documentation/directions/) using RxJava for Android so developers can download, parse and draw path on the map in very fast and flexible way (For now only JSON support). -
LocationPicker
LocationPicker - A simple and easy to way to pick a location from map -
Curve-Fit
Curve-Fit is an Android library for drawing curves on Google Maps -
Android-Google-Map-Polygon
the simple utility for google maps in android : http://www.tellmehow.co/add-google-map-android-extramaputils-library/ -
GLMap
Crossplatform offline vector map with MapCSS styling. Offline search and offline navigation are included.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Google-Directions-Android or a related project?
README
Google-Directions-Android
This project allows you to calculate the direction between two locations and display the route on a Google Map using the Google Directions API - This project isn't actively been maintained.
Sample
The sample makes use of the Google Places API for Android in order to provide a real life example of how the library can be used.You can check it out on the store.
Download
Grab via Maven:
<dependency>
<groupId>com.github.jd-alexander</groupId>
<artifactId>library</artifactId>
<version>1.1.0</version>
</dependency>
or Gradle:
compile 'com.github.jd-alexander:library:1.1.0'
Usage
To calculate the route you simply instantiate a Routing object and trigger the execute function.
*You can execute the task in this manner. ( See the example for more details on the exact implementation)
Routing routing = new Routing.Builder()
.travelMode(/* Travel Mode */)
.withListener(/* Listener that delivers routing results.*/)
.waypoints(/*waypoints*/)
.key(/*api key for quota management*/)
.build();
routing.execute();
actual code
start = new LatLng(18.015365, -77.499382);
waypoint= new LatLng(18.01455, -77.499333);
end = new LatLng(18.012590, -77.500659);
Routing routing = new Routing.Builder()
.travelMode(Routing.TravelMode.WALKING)
.withListener(this)
.waypoints(start, waypoint, end)
.build();
routing.execute();
.....
@Override
public void onRoutingSuccess(ArrayList<Route> route, int shortestRouteIndex)
{
//code to add route to map here. See sample app for more details.
}
Demostration
Demo App
Known Issues
If the AutoComplete TextView/Map of the sample app isnt working then probably the API key hasn't been set in the manifest.
If the route is not being displayed then type "Routing" in your log cat to see the potential error messages from the library.
Contribution
Please fork repository and contribute using pull requests.
Any contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.
Contributors
- Cyrille Berliat
- Felipe Duarte
- Kedar Sarmalkar
- Fernando Gil
- Furkan Tektas
- João Pedro Nardari dos Santos
- Hesham Saeed
License
Copyright 2016 Joel Dean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the Google-Directions-Android README section above
are relevant to that project's source code only.