Drawing matched output on google maps?

Hello,

Is it possible to draw the ‘instructions’ values from the match API output on google maps? if so, can you please point me on how it can be done?

Many thanks in advance!
Best,
Wheelie

Hi there!
Yes, of course you can draw route based on instructions. Get coordinates from instructions and then via javascript using Directions Service.
Here is the documentation of API - https://developers.google.com/maps/documentation/javascript/directions

You can surely display the results of the GraphHopper map matching on any map. You pick the coordinates from the returned JSON like we do with our JavaScript client: https://github.com/graphhopper/directions-api-js-client#graphhopper-map-matching-api

There is no need to do another request to Google Directions or similar.

super! thx much!

Powered by Discourse