
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
= urban-mapping-api
A simple ruby interface to Urban Mapping's free and premium neighborhood lookup API.
== Installation
sudo gem install michaeldwan-urban-mapping-api
Gem dependencies:
== Examples
To get started you need to require 'urban-mapping-api':
% irb -rubygems irb(main):001:0> require 'urban-mapping-api'
Before you do anything, create an instance of UrbanMapping::Interface
interface = UrbanMapping::Interface.new('my-api-key')
For premium API access, include the premium API key
interface = UrbanMapping::Interface.new('my-api-key', :shared_secret => 'my-shared-secred') interface.premium_api?
The default return value of all methods is an OpenStruct or array of OpenStructs.
interface = UrbanMapping::Interface.new('my-api-key') hood = interface.get_neighborhood_detail(3094847) hood
hood.city
If you want the raw hash output, pass :raw => true to the constructor
interface = UrbanMapping::Interface.new('my-api-key', :shared_secret => 'my-shared-secred', :raw => true) hood = interface.get_neighborhood_detail(3094847) hood
hood.city
(If you don't have an api key, go get one at http://developer.urbanmapping.com/accounts/register/)
Now that you have an instance of the interface, you can make calls to the service. (The below examples are using raw output.)
interface.get_neighborhoods_by_postal_code('60654')
interface.get_neighborhoods_by_lat_lng(41.882088, -87.624454)
interface.get_neighborhood_detail(3094847)
== Helpful Links
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 Michael Dwan. See LICENSE for details.
FAQs
Unknown package
We found that urban-mapping-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.