Coder Social home page Coder Social logo

walkscore's Introduction

Walkscore

This here is a gem for judging people based on their gait. Actually, it's really for using the Walkscore API to get a walk score for an arbitrary location. Simply pass in a latitude and longitude and walkscore will take care of the rest.

Installation

Add this line to your application's Gemfile:

gem 'walkscore'

And then execute:

$ bundle

Or install it yourself as:

$ gem install walkscore

Usage

It's super easy to use Walkscore. To get the actual walk score for some arbitrary coordinates, just do this:

client = Walkscore::Client.new YOUR_API_KEY_GOES_HERE

Then do this:

result = client.score_at LATITUDE, LONGITUDE

When that's all done, you'll get a Walkscore::Result back. The result object has these things:

Thing Purpose
score The actual walk score of your Coordinates
description A colorful description of the walk score. This is written by Walkscore employees, so blame them if you don't like it.
updated_at When did Walkscore last update this location?
score_uri A URI pointing right to Walkscore's page for this location.
walkscore_logo_uri A URI pointing to the Walkscore Logo. Useful, I guess. For meeting the branding requirements.
more_info_icon_uri A URI pointing to a handy icon.
more_info_uri A URI pointing to info about how Walkscore works.

Future plans

Walkscore also provides a transit and walkshed API. The transit API is up next, and will allow you to get all the stops near a location, and even find stops. The walkshed API is up as soon as I figure out what the hell good a "walkshed" is for. If you know, please email .

Branding Requirements

I am totally not your boss, and I totally can't tell you what to do, so if you use this library and don't follow Walkscore's branding requirements there is nothing I can do but judge you from afar. But really, Walkscore does have some branding requirements. Check them out.

API Key?

Yes. I know. Even to test the API. Get one here.

Latitude? Longitude?

Looking for an easy way to get these? Check out geocoder. Geocoder is cool.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

walkscore's People

Contributors

verdi327 avatar sirovenmitts avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.