
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
= 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.