In Android Studio, how to use Google Maps route API as a gRPC?

39 views Asked by At

In this page ( https://developers.google.com/maps/documentation/routes/compute_route_directions?hl=ko#java ), describes the gRPC communication method. But I can't apply this to Android. Is this a technique that's not supposed to work on Android?

An error occurred in google.maps.routing, so I can't start it. Please help me ~

I want to implement the route finding function in Android using gRPC.

error img

1

There are 1 answers

0
miguev On

You would need to use the Google Routes API Client for Java (linked from the Routes API client libraries documentation) so you can

import com.google.maps.routing.v2.*;