To follow up, the Visa Merchant Locator API doesn’t have the direction and routes feature. You'll have to use Google Maps or similar mapping service for that. Please let us know if there's other questions and someone will be happy to help.
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.