Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Geolocation Field

42,851 sites Security covered Drupal 10–11 Geolocation ecosystem
View on drupal.org

This project provides a field type to store geographical locations with latitude and longitude coordinates. It integrates with various map providers, views, and search APIs to display these locations on maps. The module also offers optional support for advanced geometry fields and works with multiple popular mapping services.

Geolocation Field provides a field type to store geographical locations as pairs of latitude and longitude (lan,lng) as well as the necessary integration to display those locations through views, fields and using a number of different map providers.

Demo on simplytest.me

Drupal 8/9/+

Drupal Integration

- Geolocation Field, Widgets & Formatters
- Views
- Search API Location integration in Views
- Geofield support for Views & Formatter
- Blocks
- Address support for Widgets & Views
- Integrated Demo modules
- GPX-file Field Widget & Formatter

(optional) Geometry Support

- Native in-DB Spatial Geometry support (requires MySQL 5.7+ / PostgreSQL)
- Geometry, Multi-/Polygon, Multi-/Linestring, Multi-/Point fields
- WKT / GeoJSON Fields & Widgets
- Views support for Within/Contains/Intersects
- Countries of the world geometries submodule
- US States geometries submodule
- German Postal Codes geometries submodule
- UNESCO World Heritage Sites points submodule

Map Providers

- Google Maps
- Google Static Maps
- Leaflet / OSM
- Yandex.Maps
- HERE Maps
- Baidu Maps

Google Maps features

- ClientLocationIndicator
- ContextPopup
- ControlCustomGeocoder
- ControlCustomLocate
- ControlCustomRecenter
- ControlGoogleMapType
- ControlGoogleStreetView
- ControlGoogleZoom
- Drawing
- Directions
- MapDisablePOI
- MapTilt
- MapTypeStyle
- MarkerClusterer
- MarkerIcon
- MarkerInfoBubble
- MarkerInfoWindow
- MarkerZoomByAnchor
- Spiderfying

Leaflet features

- ClientLocationIndicator
- ControlFullscreen
- ControlGeocoder
- ControlLayer
- ControlLocate
- ControlRecenter
- ControlScale
- ControlZoom
- CustomTileLayer
- GestureHandling
- MarkerClusterer
- MarkerIcon
- MarkerPopup
- TileLayer
- WMS

Yandex features

- Balloon
- Clusterer
- ControlGeolocation
- ControlSearch
- ControlTraffic
- ControlType
- ControlZoom

Theming / custom elements

- Render elements for map and locations
- Form element

Plugin support / Customization

- DataProvider to get geodata from different sources
- Geocoder to use different source for locations
- GeocoderCountryFormatting to display geocoded data correctly as needed
- MapCenter to customize different ways on where and how to center a map
- MapFeature to add functionality to maps
- MapProvider

Drupal 7

  • Plain text (input & output)
  • Google Maps (input & output)
  • Geolocation HTML5 (input & output)
  • Geolocation Proximity for proximity/distance based view results.
  • 7.x-1.x-dev Google Maps Geocoder (backport of Drupal 8 version)
  • 7.x-1.x-dev Template based microdata formatter (backport of Drupal 8 version)

Technical background (Drupal 7/Drupal 8)

At the moment Geolocation stores the following values in the database:

  • lat (latitude),
  • lng (longitude),
  • lat_sin (precalculated latitude sine),
  • lat_cos (precalculated latitude cosine),
  • lng_rad (precalculated radian longitude).

The precalculated values will speed up proximity SQL look ups.

Depends on

Dependencies of the latest stable release

Required by

6 tracked projects depend on this one

Activity

Tracked releases
6
Tracked since
Oct 2024
Latest release
2 months ago
Releases (12 mo)
2 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
8.x-3.15 Stable 10–11 Jun 21, 2026
4.0.0 Stable 10–11 Jun 21, 2026
4.0.0-beta2 Pre-release 10–11 Mar 21, 2025
4.0.0-beta1 Pre-release 10–11 Mar 7, 2025
4.0.0-alpha7 Pre-release 10–11 Nov 9, 2024
8.x-3.14 Stable 10–11 Oct 20, 2024