Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

geolocation

43,996 sites Security covered
View on drupal.org

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.

Activity

Total releases
2
First release
Mar 2025
Latest release
1 year ago
Release cadence
14 days
Stability
0% stable

Releases

Version Type Release date
4.0.0-beta2 Pre-release Mar 21, 2025
4.0.0-beta1 Pre-release Mar 7, 2025