
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Geohash is a latitude/longitude encoding system invented by Gustavo Niemeyer when writing the web service at geohash.org, and put into the public domain. Geohashes offer properties like arbitrary precision, similar prefixes for nearby positions, and the possibility of gradually removing characters from the end of the code to reduce its size (and gradually lose precision).
For more information, see:
GeoHash is very easy to use (and fast) because it's written in C with Ruby bindings.
require 'geohash'
GeoHash.decode('f77')
=> [63.98438, -73.82813]
GeoHash.encode(39.51, -76.24)
=> "dr1bc0edrj"
# Decode a geohash to a bounding box
decode_bbox('dqcw4')
=> [39.0234375, -76.552734375], [39.0673828125, -76.5087890625]]
You can encode or decode to an arbitrary level of precision:
encode(lat, lon, precision=10)
decode(geohash, decimals=5)
bundle install
bundle exec rake compile
(if you're using JRuby, this step is unnecessary)bundle exec rake test
FAQs
Unknown package
We found that c_geohash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
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.