mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-08-17 15:10:23 +03:00
fix some typos
This commit is contained in:
parent
c314a3092c
commit
e51973f8b1
12
.github/workflows/ci-tests.yml
vendored
12
.github/workflows/ci-tests.yml
vendored
@ -80,15 +80,15 @@ jobs:
|
|||||||
flavour: ${{ matrix.flavour }}
|
flavour: ${{ matrix.flavour }}
|
||||||
lua: ${{ matrix.lua }}
|
lua: ${{ matrix.lua }}
|
||||||
|
|
||||||
- name: Install test prerequsites (behave from apt)
|
- name: Install test prerequisites (behave from apt)
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
if: matrix.flavour == 'ubuntu-20'
|
if: matrix.flavour == 'ubuntu-20'
|
||||||
|
|
||||||
- name: Install test prerequsites (behave from pip)
|
- name: Install test prerequisites (behave from pip)
|
||||||
run: pip3 install behave==1.2.6
|
run: pip3 install behave==1.2.6
|
||||||
if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22')
|
if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22')
|
||||||
|
|
||||||
- name: Install test prerequsites (from apt for Ununtu 2x)
|
- name: Install test prerequisites (from apt for Ununtu 2x)
|
||||||
run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn
|
run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn
|
||||||
if: matrix.flavour != 'oldstuff'
|
if: matrix.flavour != 'oldstuff'
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
run: pip3 install -U pytest-asyncio
|
run: pip3 install -U pytest-asyncio
|
||||||
if: matrix.flavour == 'ubuntu-20'
|
if: matrix.flavour == 'ubuntu-20'
|
||||||
|
|
||||||
- name: Install test prerequsites (from pip for Ubuntu 18)
|
- name: Install test prerequisites (from pip for Ubuntu 18)
|
||||||
run: pip3 install pytest pytest-asyncio uvicorn
|
run: pip3 install pytest pytest-asyncio uvicorn
|
||||||
if: matrix.flavour == 'oldstuff'
|
if: matrix.flavour == 'oldstuff'
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmake-args: -DBUILD_MODULE=on
|
cmake-args: -DBUILD_MODULE=on
|
||||||
|
|
||||||
- name: Install test prerequsites
|
- name: Install test prerequisites
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
|
|
||||||
- name: BDD tests (legacy tokenizer)
|
- name: BDD tests (legacy tokenizer)
|
||||||
@ -212,7 +212,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
flavour: 'ubuntu-22'
|
flavour: 'ubuntu-22'
|
||||||
|
|
||||||
- name: Install test prerequsites
|
- name: Install test prerequisites
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
|
|
||||||
- name: BDD tests (php)
|
- name: BDD tests (php)
|
||||||
|
@ -93,7 +93,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
### Result restriction
|
### Result restriction
|
||||||
|
@ -24,7 +24,7 @@ nominatim.org has preprocessed importance tables for the
|
|||||||
and for [secondary importance](https://nominatim.org/data/wikimedia-secondary-importance.sql.gz)
|
and for [secondary importance](https://nominatim.org/data/wikimedia-secondary-importance.sql.gz)
|
||||||
based on Wikipedia importance of the administrative areas.
|
based on Wikipedia importance of the administrative areas.
|
||||||
|
|
||||||
The source code for creating these files is avaible in the Github projects
|
The source code for creating these files is available in the Github projects
|
||||||
[osm-search/wikipedia-wikidata](https://github.com/osm-search/wikipedia-wikidata)
|
[osm-search/wikipedia-wikidata](https://github.com/osm-search/wikipedia-wikidata)
|
||||||
and
|
and
|
||||||
[osm-search/secondary-importance](https://github.com/osm-search/secondary-importance).
|
[osm-search/secondary-importance](https://github.com/osm-search/secondary-importance).
|
||||||
|
@ -275,7 +275,7 @@ class SearchBuilder:
|
|||||||
use_lookup: bool) -> List[dbf.FieldLookup]:
|
use_lookup: bool) -> List[dbf.FieldLookup]:
|
||||||
""" Create a ranking expression with full name terms and
|
""" Create a ranking expression with full name terms and
|
||||||
additional address lookup. When 'use_lookup' is true, then
|
additional address lookup. When 'use_lookup' is true, then
|
||||||
address lookups will use the index, when the occurences are not
|
address lookups will use the index, when the occurrences are not
|
||||||
too many.
|
too many.
|
||||||
"""
|
"""
|
||||||
# At this point drop unindexed partials from the address.
|
# At this point drop unindexed partials from the address.
|
||||||
|
@ -154,7 +154,7 @@ def import_importance_csv(dsn: str, data_file: Path) -> int:
|
|||||||
if not data_file.exists():
|
if not data_file.exists():
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# Only import the first occurance of a wikidata ID.
|
# Only import the first occurence of a wikidata ID.
|
||||||
# This keeps indexes and table small.
|
# This keeps indexes and table small.
|
||||||
wd_done = set()
|
wd_done = set()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user