Google-Directions-Android | project allows you to calculate the route | Map library

 by   jd-alexander Java Version: v1.1.0 License: MIT

kandi X-RAY | Google-Directions-Android Summary

kandi X-RAY | Google-Directions-Android Summary

Google-Directions-Android is a Java library typically used in Geo, Map applications. Google-Directions-Android has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.

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.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Google-Directions-Android has a medium active ecosystem.
              It has 971 star(s) with 406 fork(s). There are 64 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 18 open issues and 20 have been closed. On average issues are closed in 13 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Google-Directions-Android is v1.1.0

            kandi-Quality Quality

              Google-Directions-Android has 0 bugs and 0 code smells.

            kandi-Security Security

              Google-Directions-Android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Google-Directions-Android code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Google-Directions-Android is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Google-Directions-Android releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Google-Directions-Android and discovered the below as its top functions. This is intended to give you an instant insight into Google-Directions-Android implemented functionality, and help decide if they suit your requirements.
            • Initializes the activity .
            • Parse the response
            • Constructs the full URL to use for routing .
            • Get the autocomplete results from the Google Analytics API .
            • Handle success route
            • Decode polyline .
            • Writes the Parcel instance .
            • Returns a filter that filters the data set .
            • Find polyline options .
            • This method executes the Google App API request .
            Get all kandi verified functions for this library.

            Google-Directions-Android Key Features

            No Key Features are available at this moment for Google-Directions-Android.

            Google-Directions-Android Examples and Code Snippets

            No Code Snippets are available at this moment for Google-Directions-Android.

            Community Discussions

            QUESTION

            How to use Google-Directions-Android library with a restricted API key
            Asked 2020-Mar-22 at 14:41

            I am new to Android and working on a google map project. For this I am using this library to draw a route between two points.

            This works fine when there is no restriction on the google map api key. But when restriction is applied to my app's package name and sha1 key it won't show the route.

            It throws an exception saying:

            This IP, site or mobile application is not authorized to use this API key. Request received from IP address XX.XX.XXX.XXX, with empty referrer

            Is there any way to use this library with a restricted api key? How can I add a referrer with this library?

            ...

            ANSWER

            Answered 2020-Mar-22 at 14:41

            It looks like this library uses the Directions API web service, so you cannot use an Android-restricted API key. If you do, you get the request_denied error you're reporting. This is because web services are server-side and the API key can only be restricted by IP address.

            Having said that, you are calling the API from an Android app. Google's documentation states:

            IP restrictions might be impractical, such as in mobile applications and cloud environments that rely on dynamic IP addresses. When using Maps Web Service APIs in these scenarios, secure your apps using one or more of the following techniques:

            pinning, proxy server, obfuscation

            Hence, setting up a proxy server may be the best way to properly secure your API key.

            Hope this clarifies your question.

            Source https://stackoverflow.com/questions/57196465

            QUESTION

            Route won't draw on map with "Google-Directions-Android" library
            Asked 2019-Jun-10 at 12:13

            I am using the Google-Directions-Android Library (while following this example).
            I have followed the example above and no route was drawn on the map for me - no errors were thrown either and I don't know what I did wrong.

            My map code (the code that is part of the example is mostly below"onRoutingCancelled" - at the bottom part.):

            ...

            ANSWER

            Answered 2019-Mar-01 at 13:24

            In the end, I solved it by adding the server key from google API console, in order to use google direction you must enter proper key.

            Source https://stackoverflow.com/questions/53817457

            QUESTION

            “This API project is not authorized to use this API” using Google-Directions-Android
            Asked 2019-Jan-10 at 14:28

            I'm building an app using Google-Directions-Android (https://github.com/jd-alexander/Google-Directions-Android). I'm using the API Key in the same App for maps without problems, but when I try to use the following

            ...

            ANSWER

            Answered 2019-Jan-10 at 14:28

            To use google direction library you will have to use your server key(auto generate for you bu google). You can find the server key inside your console

            Try replace this code :

            Source https://stackoverflow.com/questions/53874739

            QUESTION

            Check if route contains a specific coordinates or not
            Asked 2018-May-26 at 21:19

            I am currently developing an application in which i want to know if a route contains a certain set of lat long coordinates. Here is my code:

            ...

            ANSWER

            Answered 2018-May-26 at 21:19

            Take a look at PolyUtil.isLocationOnPath(LatLng point, java.util.List polyline, boolean geodesic, double tolerance) method of Google Maps Android API Utility Library. You need to get polyline path from A to D and check each point from list (B and C) with isLocationOnPath() if it laying on A-D path. Something like that:

            Source https://stackoverflow.com/questions/50546625

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Google-Directions-Android

            You can download it from GitHub, Maven.
            You can use Google-Directions-Android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Google-Directions-Android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            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.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link