Search engines

The Géoportail's API gives access to two search engines :

  • a geographical names search service based on the BD NYME® product ;
  • an addresses search service based on the ROUTE ADRESSE® product.

To be able to use these services, the API's contract must contain the relevant layers (Cf. "Create a new contract"):

  • geographical names search : Toponyms (OPENLS:TOPONYMS.ALL) ;
  • addresses search : Addresses (OPENLS:ADDRESSES.CROSSINGS).

Geographical names search :

The Javascript API uses a component that interacts directly with the search engine.

A click on the search by names picto displays the search form :

The Location field allows keying in the searched location ! A click on the Search button launches the search :

Results are displayed at the bottom of the search form :

A click on a result centers the map on the selected location and closes the search form. A Cntrl-click on a result centers the map on the selected location without closing the search form.

Addresses search :

The Javascript API uses a component that interacts directly with the search engine.

A click on the search by addresses picto displays the search form :

The Street allows keying in the street address, the Place field allows keying in the city. The Postal code field is not yet used. A click on the Search button launches the search :

Results are displayed at the bottom of the search form :

A click on a result centers the map on the selected address and closes the search form. A Cntrl-click on a result centers the map on the selected address without closing the search form. A target shows the selected address on the map ; on hovering the target, a popup arises with the address' informations.

A Cntrl-Alt-click on a result that is a city refines the search by adding the selected city and postal code in the form.