I have looked at our documentation for API 1.4 of Store Locator JS API and cant find a suitable function for retrieving driving distance and time in the documentation.
Would you be able to provide a code snippet, to update stores with data from Distance API, similar to this function in JS API v 1.4 | Woosmap Developers does?
This topic is archived. The Store Locator JS API discussed below has been retired, and the tutorial link at the end no longer resolves. The Distance API still works as described here. To build the map itself, start with the Map JS API.
For now, the Woosmap Store Locator JS API does not include features from Woosmap Distance API. But you can query the Distance API by yourself.
I’ve updated the JS Store Locator sample app to compute distance from a location (search from a user or geolocation) to a list of nearby stores, using the /distancematrix/endpoint from Woosmap Distance API.