markaspot/geolocation_nominatim

Temp Home for A Nominatim based geocoder and widget for geolocation.

Installs: 745

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Language:JavaScript

Type:drupal-module

dev-8.x-1.mas 2017-12-14 10:07 UTC

This package is not auto-updated.

Last update: 2020-10-16 22:01:15 UTC


README

Provides a Open Street Map - Nominatim geocoder with a Leaflet map widget for Geolocation fields.

Installation

  1. Download and install geolocation and leaflet modules.

  2. Download https://github.com/perliedman/leaflet-control-geocoder/releases/tag/v1.5.1 and extract the download to /libraries/leaflet-control-geocoder/

  3. Enable Geolocation Nominatim

Usage

Set any geolocation field to use the Geolocation Nominatim widget. In the widget settings, set up the default map view (lat/lon and zoom) for the widget.

The field widget is a map with a search bar. Use the search bar to search for a location. You can also click on the map set the location, or drag the marker around.

Experimental features

There's an experimental feature to populate an Address field with the result of the geocode search (and also the results of a reverse geocode search when clicking on the map). The feature can be enabled in the widget settings. It likely doesn't work for all scenarios and countries. It won't work with multiple or multi-value address fields or other widgets than the default address widget.