Can we use Google's Routes API to create path(route) on the lightship map in Unity?

  • Issue category: Lightship Maps
  • Device type & OS version: Android / iOS

Description of the Problem:
I can’t find a way to use Google’s routes API to draw a path on the lightship maps just like directions. Can we do that? Can you give me some ideas around how can this be achieved, that would really help me.

Thanks.

Hello! You should be able to create a MapLayer with points provided by Google’s Routes API to draw the paths. Our Custom Map Layers Sample provides an example! Unfortunately, Maps doesn’t have any routing/pathing out of the box, but we make it pretty easy to add on your own. Also, could you tell me a little bit more about your project and what you’re trying to build?

1 Like

Thanks for replying!

Need to try out the map layers, then.

I have the bunch of destinations (POIs) in the search screen. When user clicks on the map button of individual POI, it should take me to the map screen and draw the path to that destination.

Thanks again.