MapKit js and getting directions

I have worked out how to get an Apple map on my site. I have seen instances where people have been able to add fields with addresses then reload the Apple Map with directions. Does anyone know if there are a tutorials on how to do this?


Thanks in advance.

Replies

The WWDC video from a few years back has a good review of routing:


Introducing MapKit JS - WWDC 2018 - Videos - Apple Developer


-Mark

Hi - did you ever get a solution for this?

I can embed a map in a web page like most people, and do the whole poly line overlay from a to b showing the route , but I'm struggling to show the directions in a separate div.