Add api-web and api end-point to show the closest stores to Mapotempo-web.
Add routes:
get /api-web/0.1/stores/by_distance
get /api/0.1/stores_by_distance.{format}
Add this line to your application's Gemfile:
gem 'mapotempo_web_by_time_distance', path: '../mapotempo_web_by_time_distance'
And then execute:
$ bundle
Add the following JavaScript file to app/assets/javascripts/application.js
:
//= require mapotempo_web_by_time_distance
Mapotempo is licensed under the AGPL-3 license, this gem too.