Importing KML file data into GeoField field instance

Configure a GeoField instance where the data is retrieved from a KML File.

The example: import the city of Vienna waste collection centers into a GeoField and display them on a Leaflet map.
Data Source: Stadt Wien -
Source URL:
Licence: Creative Commons Attribution 3.0 Austria (CC BY 3.0)
Link to Terms of Use:

One note about this tutorial:
It does not work like the Drupal OpenDataVienna project ( in that this tutorial will import the KML file once and create the data from that file. The OpenDataVienna project attempts to grab the updated GeoJSON file on cron run from the source and create one Node per element from the GeoJSON file.

  1. Prerequisites: Install Drupal 7 and the following contribution modules:
    1. Main modules for this tutorial
      1. Geocoder
      2. GeoPHP
      3. GeoField (1.1, not 2.x for Leaflet)
      4. Leaflet (also the Leaflet Library as indicated by the Leaflet module)
      5. File
    2. ...and many supporting modules
      1. CTools
      2. Entity API
      3. Libraries

Basic Dealer Locator, User Locator, Store Locator proximity search

The Goal: Five minutes to location based search results

This page will describe how to create a basic Dealer Locator, User Locator, Store Locator, etc with proximity search. The results will be displayed using Views. Your users will be able to search using friendly strings, such as "City, State", "State", "Province", and "Post/Zipcode" and return a result list ordered by proximity/distance.


The result will not show a map, only a simple list of results ordered by proximity.

There is a lot of documentation in the Drupal geolocation community that is focused on creating maps, which can make anyone new to the Drupal geocoding modules confused about where to begin for simple requirements. Fear not, the steps are actually very easy to accomplish, and you will have a 'store locator' running in minutes.


Required modules

Openlayers Proximity Search – Drupal 7

Other references:


These are steps to create a proximity map that will filter a list of items and display results on a map based upon their distance from a user entered address or zip code. The process also creates a table (as an attachment) that lists the results and their distance from the selected address.

Comparison of mapping modules

This page aims to provide developers and site builders some navigation on the sea of options for the mapping of location data sets in Drupal D7. This is by no means an extensive survey. The idea is that by listing a number of the most popular modules side by side with their features, it will make it easier for the reader to shortlist modules for their specific needs before examining details on the various project and documentation pages.

In general you'll need at least two modules to create maps from location data: one to provide a location data storage facility and one to render the locations as markers on a map.

Examples of location storage modules are: Location, Geofield and Geolocation field and Get Locations.

Additionally, while the table below indicates required location storage methods (such as "Geofield" for "Leaflets"), it is in fact possible to deploy a module such as Geocoder to, for example, use Location as a storage method for Leaflet or OpenLayers.

Subscribe with RSS Subscribe to RSS - geocoder