Find Exact Coordinates of Intersections with JS

We are trying to find the exact coordinates of the nearest intersection to a given latitude and longitude. Does anybody know how this can be done using JavaScript?


What is your use case?

You could use this new feature:

Thanks for the help, but is there any way that we can do this from JavaScript?
We are trying to place a stop location on corners so that it is accessible from all sides/ angles. The idea is that the user would input their location and then we snap them to the nearest corner for pickup. Is there any way to do this using the JavaScript API Client (

It is JavaScript. But you have to use an MVT library.