Store locator

Find the nearest of your own stores by drive time, from any address.

View on GitHub
SDK 1.0.0

A bakery chain’s own GeoJSON shows as pins, and the address you type lines up its three nearest stores in order of drive time, with the route to the one you pick.

  • PlacesModule.show takes the Places collection in stores.ts unchanged, as it would a search response, and label.title reads each store’s name.
  • calculateRoute takes the geocoded address and a store feature unchanged, so ranking the straight-line shortlist costs three calls and no conversion.
  • setEventState gives the store picked in the list the same pin look a click on the map gives it.

Related examples