Geocoder is a full-featured geocoding library for Ruby that integrates seamlessly with Rails applications. It enables converting addresses into geographic coordinates (latitude and longitude) and vice versa, known as reverse geocoding. The gem supports multiple geocoding services like Google, Bing, Mapbox, and OpenStreetMap, letting developers choose based on cost or coverage. Beyond simple geocoding, Geocoder can perform IP address lookups, distance queries, and proximity searches directly in ActiveRecord or Mongoid models. With its database integration, you can query for nearby records, order results by distance, or filter results within a radius, making it invaluable for location-based apps. By abstracting away API differences and providing a clean Ruby interface, Geocoder makes geospatial features straightforward to implement in web and mobile projects.

Features

  • Forward geocoding (address → coordinates) using many providers
  • Reverse geocoding (coordinates → nearest address)
  • Support for caching results to minimize repeated external requests
  • Distance calculations, querying objects “near” a given coordinate, handling units (km, miles) etc.
  • Pluggable geocoding providers; ability to specify which service to use, customization of API keys, timeouts, etc.
  • Integration with Rails / ActiveRecord scopes to allow queries like Model.near(...) etc.

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Geocoder

Geocoder Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Geocoder!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Ruby

Related Categories

Ruby Libraries

Registered

2025-09-17