![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.
= zipcode_locator
Get Zipcodes and Location info by using ZipCode APIS.
= Usage
To use this gem, first you need to register your application at Zipcode API visit https://www.zipcodeapi.com/Register, give your application name and email, then obtain an apikey which can be used to communicate with zipcode apis.
apikey = "xxxxxxxx"
then,
$ gem install zipcode_locator
$ @object = ZipcodeLocator.new(apikey)
= Zipcode Locator methods
zipcode_locator supports different units and reposnse formats, To get repsonse in particular format with a particulat unit, you can pass these as an optional parameter
optional parameter includes unit and format for the request.
unit can be any of these availble units "km", "mile", "degree", and "radians"
format can be 'json', 'xml', and 'csv'
$ options = { :unit => "km", :format => "json" }
== Zipcode Distance
$ zipcode1 = 10001
$ zipcode2 = 10005
$ @object.distance_between_zipcodes(zipcode1, zipcode2, options)
== Zipcodes By Radius
$ zipcode = 10001
$ radius = 5
$ @object.get_zipcodes_by_radius(zipcode, radius, options)
== Find close Zipcodes
$ zipcodes = "10001, 10005"
or
$ zipcodes = [10001, 10005]
$ distance = 5
$ @object.find_close_zipcodes(zipcodes, distance, options)
== Zipcode to Location info
$ zipcode = 10005
$ @object.zipcode_location_info(zipcode, options)
== Multi Zipcodes to Location info
$ zipcodes = "10001, 10005"
or
$ zipcodes = [10001, 10005]
$ @object.multi_zipcodes_location_info(zipcodes, options)
== Location to Zipcodes
$ city = "Brooklyn"
$ state = "NY"
$ @object.get_zipcodes_by_locations(city, state, options)
== Contributing to zipcode_locator
== Copyright
Copyright (c) 2016 anildias. See LICENSE.txt for further details.
FAQs
Unknown package
We found that zipcode_locator 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.