![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
michaeldwan-urban-mapping-api
Advanced tools
= 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 michaeldwan-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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.