Project

starbucks

0.0
No commit activity in last 3 years
No release in over 3 years
Find starbuckses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

Starbucks - Find them.¶ ↑

This gem allows you to find the nearest Starbucks from a lat/lon. This gem may stop functioning at any time without warning because the API that it uses is not published or public. Please see the LICENSE.txt file for more information.

Installation¶ ↑

Add this line to your application’s Gemfile:

gem 'starbucks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install starbucks

Usage¶ ↑

To use:

require 'starbucks'

# Get the nearest:
Starbucks.find_nearest(38.8903694152832, -77.0319595336914) { |bucks|
  puts bucks.name
  puts bucks.address
  puts bucks.miles_away
}

# Alternative form
bucks = Starbucks.find_nearest(38.8903694152832, -77.0319595336914)
puts bucks.name
puts bucks.address
puts bucks.miles_away

# Get the nearest 30 and print out all their attributes (there's a bunch, which I won't list here)
Starbucks.find(lat, lon).each { |bucks|
  puts bucks
}