Pelias Field
This module provides a custom Drupal field for geocoding addresses using the Pelias API. It offers real-time search suggestions, supports both a SaaS service and self-hosted instances, and stores detailed geographic data with configurable field mappings. The field can be displayed in various formats and includes performance optimizations and an admin interface for testing and configuration.
What solution does this module provide?
A Drupal custom field module that provides geocoding functionality using the Pelias API, with support for both Geocode Earth SaaS service and self-hosted Pelias instances.
Features
- Autocomplete geocoding field with real-time search suggestions
- Flexible API integration - works with Geocode Earth or self-hosted Pelias
- Rich data storage - stores both raw JSON and parsed structured data
- Configurable field mappings - extract specific fields from API responses
- Performance optimized - includes debouncing, caching, and rate limiting
- Customizable formatters - multiple display options for field output
- Admin interface - easy configuration and API testing
Post-Installation
API Settings
API Endpoint: Set to https://api.geocode.earth/v1 for Geocode Earth or your self-hosted URL
API Key: Required for Geocode Earth (format: ge-xxxxxxxxxxxxxxxx)
Performance Settings: Configure timeout, rate limits, debounce delay, and caching Data Sources and Layers Configure which data sources and place types are available:
Sources: OSM, OpenAddresses, GeoNames, Who's On First
Layers: venue, address, street, country, region, locality, etc.
Similar projects
Geocoder , Geofield