Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Use SimpleGeo’s Places API to find the closest Starbucks to the user’s current location and then, once that location is set, make a second API call to SimpleGeo to find the next closest Starbucks location. Then use the Google Maps API to give directions from the first Starbucks to the second Starbucks.
To begin, add the SimpleGeo API to the collection of JavaScript libraries:
<script src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="http://j.maxmind.com/app/geoip.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"> </script> <script src="http://cdn.simplegeo.com/js/1.2/simplegeo.places.jq.min.js"> </script>