CapstoneProject18 / Deal-Finders-and-Matchers

Deals finders and matchers Creates a map based deal locator. Merchants in a particular area can describe a set of deals that are available. A user can then search for deals within a specific radius, The search can be further optimized by category. Categories are merchant defined and therefore a mechanism of cross-referencing the same categories described using different words becomes necessary. This uses a map based front-end and locates deals within a specific radius.
1 stars 5 forks source link

Deal Finder and Locator

A drop-in module for a website that shows a google map with list of stores in the sidebar.

Features

CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/microapps/store-locator@1.1.1/dist/store-locator.css">
<script src="https://cdn.jsdelivr.net/gh/microapps/store-locator@1.1.1/dist/store-locator.js"></script>

Usage

<div id="my-store-locator">
      <!-- map will be rendered here-->
</div>
<script src="https://github.com/CapstoneProject18/Deal-Finders-and-Matchers/raw/master/store-locator.js"></script>
<script>
  storeLocator({
    container: 'store-locator',
    apiKey: 'GOOGLE_MAPS_API_KEY',
    center: {lat: 42.382387, lng: -71.116648},
    travelMode: 'WALKING',
    unitSystem: 'METRIC',
    storeMarkerIcon: './storeIcon.png',
    homeMarkerIcon: './homeIcon.png',
    markerIconSize: [40, 62],
    limit: 1,
    searchHint: "Not all deal sell our whole range so if you're looking for a specific product we recommend you call ahead.",
    deal: [
      {
        name: 'Cafe Coffee Day',
        address: 'C # 1, 2,3 PP Tower, Netaji Subhash Place, Pitampura, Delhi, 110034',
        location: {lat: 28.695090, lng: 77.130710},
        website: 'https://www.cafecoffeeday.com'
      },
      ]
  })
</script>

Configuration options