gws.plugin.nominatim.model

Nominatim model.

Source code: gws.plugin.nominatim.model

Module Contents

class gws.plugin.nominatim.model.Config(*args, **kwargs)

Bases: gws.base.model.Config

Nominatim model

country: str | None

country to limit the search

language: str | None

language to return the results in

class gws.plugin.nominatim.model.Object

Bases: gws.base.model.dynamic_model.Object

Nominatim model.

country: str
language: str
serviceUrl = 'https://nominatim.openstreetmap.org/search'
configure()

Configuration hook.

props(user)

Generate a Props struct for this object.

Parameters:

user – The user for which the props should be generated.

find_features(search, user, **kwargs)