# \#distance-api

**URL:** https://forum.woosmap.com/tag/distance-api/16.md

[Latest](https://forum.woosmap.com/latest.md) · [Categories](https://forum.woosmap.com/categories.md) · [Tags](https://forum.woosmap.com/tags.md)

---

## [Store Locator JS API - Distance code snippet function](https://forum.woosmap.com/t/store-locator-js-api-distance-code-snippet-function/22)

<div class="topic-metadata">

**Author:** [@vfunnell](https://forum.woosmap.com/u/vfunnell)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 3:14pm UTC](https://forum.woosmap.com/t/store-locator-js-api-distance-code-snippet-function/22 "2020-07-22T15:14:28Z")

</div>

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 upd…
