-3

Google Maps API Is there a way to find Segment information on a Route between 2 places

I have 2 places/addresses/latlong. I am looking for the direction between the two. For this direction, I need type information about the segment:

  • Is it a road
  • Is it a highway
  • Is it a bridge
  • ...
  • You need input, (sorting it too) a pathfinding algorithm, and output. – FailingCoder Nov 05 '19 at 16:35
  • @FailingCoder The Google Maps API already builds the direction between the two places. But it gives me a set of legs, composed of a set of steps... but the lowest segment only has the distance, starting and ending points. Nothing else. I'm looking for more information about this segment – Michael Abdallah-Minciotti Nov 05 '19 at 17:51
  • 2
    You can specify in a request to avoid highways, but other than that; what you want isn't currently offered by Google on the Directions API. You could make a feature request. – ecg8 Nov 05 '19 at 18:28

1 Answers1

0

Follow the link , i hope it is useful for you.

https://medium.com/@trientran/android-working-with-google-maps-and-directions-api-44765433f19?

Community
  • 1
  • 1