]> git.openstreetmap.org Git - nominatim.git/blob - src/nominatim_api/search/__init__.py
replace PhraseType enum with simple int constants
[nominatim.git] / src / nominatim_api / search / __init__.py
1 # SPDX-License-Identifier: GPL-3.0-or-later
2 #
3 # This file is part of Nominatim. (https://nominatim.org)
4 #
5 # Copyright (C) 2024 by the Nominatim developer community.
6 # For a full list of authors see the git log.
7 """
8 Module for forward search.
9 """
10 from .geocoder import (ForwardGeocoder as ForwardGeocoder)
11 from .query import (Phrase as Phrase,
12                     PHRASE_ANY as PHRASE_ANY,
13                     PHRASE_AMENITY as PHRASE_AMENITY,
14                     PHRASE_STREET as PHRASE_STREET,
15                     PHRASE_CITY as PHRASE_CITY,
16                     PHRASE_COUNTY as PHRASE_COUNTY,
17                     PHRASE_STATE as PHRASE_STATE,
18                     PHRASE_POSTCODE as PHRASE_POSTCODE,
19                     PHRASE_COUNTRY as PHRASE_COUNTRY)
20 from .query_analyzer_factory import (make_query_analyzer as make_query_analyzer)