Table Of Contents

Previous topic

Light API Doc

Next topic

LightMap.Map

This Page

LightMap.Geocoder

class LightMap.Geocoder(options)
param options:

Object options

  • Valid properties for the options argument:
  • map - OpenLayers.Map : map with a “vector” layer
  • query - String: query string to search e.g. “Rue des Berges 37 Payerne”

Class providing the functions necessary geocode addresses.

Example Use

Sample code to geocode

var geocoder = new GeoAdmin.Geocoder({map: map});
geocoder.geocode('Berges 37 Payerne');

Config Options

Configuration properties.

map

OpenLayers.Map A OpenLayers.Map instance

Public Methods

Public methods.

Geocoder.geocode()
Parameters:queryString: the query parameter to search

Recenter the map according to a query parameter (address (only for swiss confederation offices), location, city, canton etc...)