1

I am developing an Android app(java) that can calculate the travel distance of two places given their coordinates. I have a Google Distance Matrix API key with me but I was unable to find a proper way to add the dependency in my Android project. How can I solve this problem?

Vizard
  • 149
  • 1
  • 12
  • 1
    You can use Java client library for web services: https://github.com/googlemaps/google-maps-services-java – xomena Sep 09 '19 at 18:22

1 Answers1

0

The best method is to develop a REST API and call Distance Matrix API and transfer the decoded JSON object to app as a String.

Vizard
  • 149
  • 1
  • 12