gws.plugin.nominatim.finder

Nominatim finder.

Source code: gws.plugin.nominatim.finder

Module Contents

class gws.plugin.nominatim.finder.Config

Bases: gws.base.search.finder.Config

Search for places and addresses in OpenStreetMap via Nominatim.

country: str | None

Countries to limit the results to.

language: str | None

Preferred language of the results.

class gws.plugin.nominatim.finder.Object

Bases: gws.base.search.finder.Object

Nominatim finder object.

Searches places and addresses in OpenStreetMap by keyword through a nominatim model.

supportsKeywordSearch = True
configure()
configure_models()
configure_templates()
create_model(cfg)

Create a nominatim model with the country and language of the finder.

Parameters:

cfg – Model configuration, or None for the default model.

Returns:

The model object.