- Use the USDA API to fetch farmers market near the user (by 5 digit Zip Code or Lat,Lng GPS coordinates).
- On a user event or receipt of fetch/AJAX request display the results in a table accesible to the user.
- Populate the map with results or plot points.
- Get Directions for the User to a selected location
I am using MapQuest but you can use any Map based API
Sources:
Live Demo:
Note: you will receive an error for an unsafe script source because the keys are loading from my personal web site.
I can assure you there is nothing fishy going on here, but posting an actual API key on GitHub is bad practice.
console.log(apiKeys)
will show you the object that is loading.