Sarah Hoffmann
411f361fcb
traverse address list backwards when computing admin levels
...
By starting with the lowest address level, when collecting
administrative boundaries by level, there is a better chance
to actually get the boundary when the capital of the
administrative boundary is tagged with the level of the
boundary as well.
This is just a heuristics adaption to make the best out of
the imprecise admin_level definition for place nodes.
Fixes #1261 .
2018-12-06 21:18:47 +01:00
Sarah Hoffmann
e080bdff0f
Don't escape slashes in json output
...
Fixes #1256 .
2018-12-04 22:28:29 +01:00
Sarah Hoffmann
fae8da2bcb
Merge pull request #1252 from mtmail/update-and-document-gb-postcode-data2
...
GB postcode: new conversion script, documentation
2018-12-04 22:20:55 +01:00
Sarah Hoffmann
2d1337e190
Merge pull request #1255 from mtmail/faq-about-permanent-ids
...
new FAQ entry about place_id values
2018-12-04 22:03:41 +01:00
Sarah Hoffmann
ec4e3c36af
Merge pull request #1258 from lonvia/cleanup-utils
...
Restructure script and website installation
2018-12-04 22:00:31 +01:00
marc tobias
1489e6c00e
Explain place_id, i.e. shouldn't be use as permanent id
2018-12-03 19:05:18 +01:00
Marc Tobias Metten
61769a1bad
GB postcode: new conversion script, documentation
2018-12-03 18:43:28 +01:00
Sarah Hoffmann
56839ba50f
No longer install phrase configuration
...
Instead add it as a configurable path with the one from
the source directory as the default.
Also reinstates that settings/defaults.php is installed as
settings/settings.php.
2018-12-02 11:50:44 +01:00
Sarah Hoffmann
fe6a2e9f14
Remove server_compare from list of installed scripts
...
This is a stand alone script and does not depend on
the configured environment.
2018-12-02 11:21:09 +01:00
Sarah Hoffmann
11c91e3b8d
Remove settings/settings.php
...
This was only a stub to warn when something was
executed directly from utils/ in the source directory.
This is no longer possible.
2018-12-02 11:16:41 +01:00
Sarah Hoffmann
e70f405abd
Restructure script and website installation
...
Just make cmake install a small stub that includes
the settings from the build directory and then the
script from the source directory. Remove executable
rights from php files in utils/ so that they cannot
be accidentally executed.
2018-12-02 11:13:48 +01:00
Sarah Hoffmann
8b8ee00725
remove blocks script
...
Belongs to the rate-limiting code that has been
removed a long time ago.
2018-12-02 10:18:54 +01:00
Sarah Hoffmann
121126cb50
Migration hint for address levels
2018-12-01 23:20:04 +01:00
Sarah Hoffmann
9a13086122
fixup typos and linking of data-source docs
...
Can't create symbolic links to a directory and then
to files within.
2018-12-01 22:40:37 +01:00
Sarah Hoffmann
c68833cd7f
Merge branch 'document-osm-country-grid' of https://github.com/mtmail/Nominatim
2018-12-01 22:20:50 +01:00
Sarah Hoffmann
d4fa528d5c
Merge pull request #1245 from lonvia/address-levels-from-json
...
Make rank assignments configurable
2018-12-01 21:43:53 +01:00
marc tobias
8e19336f49
document what country_osm_grid does
2018-11-29 17:06:04 +01:00
Sarah Hoffmann
52178caa98
fix tests
2018-11-28 23:40:17 +01:00
Sarah Hoffmann
e5cb5d439d
Merge pull request #1251 from mtmail/remove-naturalearth-boundary-fallback
...
remove Natural Earth dataset
2018-11-28 22:29:41 +01:00
Sarah Hoffmann
e28fa6c787
Merge pull request #1253 from RhinoDevel/patch-1
...
Fix typo.
2018-11-28 22:28:16 +01:00
RhinoDevel
313574ce97
Fix typo.
2018-11-28 13:11:06 +01:00
Sarah Hoffmann
96a84294f4
use consistent naming in doc pages
2018-11-27 22:59:18 +01:00
Sarah Hoffmann
7611aa2f65
Move address level config into settings/
2018-11-27 22:32:27 +01:00
Sarah Hoffmann
97fa7e0817
Merge pull request #1250 from mtmail/correct-builddir-variable-in-test-readme
...
test/README.txt: BUILDDIR should be BUILD_DIR [SKIP CI]
2018-11-27 22:27:25 +01:00
marc tobias
417b5b031b
test/README.txt: BUILDDIR should be BUILD_DIR [SKIP CI]
2018-11-27 20:17:27 +01:00
marc tobias
a7e26e8f59
remove Natural Earth dataset
2018-11-27 20:13:33 +01:00
Sarah Hoffmann
7665e5a035
Merge pull request #1247 from mtmail/exit-with-error-code
...
settings.php: when printing error, also exit with error code
2018-11-26 14:53:11 +01:00
marc tobias
c9a553fdb4
settings.php: when printing error, also exit with error code
2018-11-26 14:28:09 +01:00
Sarah Hoffmann
5e072dabc3
remove PHP parameter typing
...
Older PHPs don't seem to like it.
2018-11-24 19:05:13 +01:00
Sarah Hoffmann
e5b7424592
travis: make sure to start with fresh template for DB tests
2018-11-24 16:22:05 +01:00
Sarah Hoffmann
e99dc2a3da
Add function to update address levels
2018-11-24 16:21:16 +01:00
Sarah Hoffmann
211214a8d3
Add documentation for new ranking level configuration
2018-11-24 16:21:16 +01:00
Sarah Hoffmann
e10d11c6c7
Make rank assignments configurable
...
The initial search and address rank is saved in a table
that is set up from a json configuration file. Ranks may
be assigned on a country level according to class and
type of the object. Special handling that depends on the
geometry or OSM type is still hard-coded in placex insert.
The new default config file mimicks the current assignment
as close as possible. A couple of exceptions have been
removed, most notably the exception for Irish townlands.
2018-11-24 16:21:16 +01:00
Sarah Hoffmann
f0088ca2be
Merge pull request #1237 from ckquentvp/fix-accept-language-underscore-parsing
...
match languages such as ja_rm (or any other with underscore) properly
2018-11-24 16:20:00 +01:00
name
3cd3d1f5ae
test languages with underscores (e.g. ja_rm)
2018-11-24 16:52:24 +02:00
Sarah Hoffmann
14cef94e61
fix variable name in setup --drop
2018-11-24 12:29:00 +01:00
Sarah Hoffmann
71ef94dae6
add Makefile for tests
2018-11-24 12:25:28 +01:00
Sarah Hoffmann
fc99954b2e
Merge pull request #1242 from lonvia/import-for-reverse-only
...
Add a reverse-only mode
2018-11-21 21:36:11 +01:00
Sarah Hoffmann
1526501ed7
add documentation for reverse-only
2018-11-21 19:38:39 +01:00
Sarah Hoffmann
5d98c09ee9
Add reverse-only parameter to setup
...
Avoids creating the search_name table. Useful when only /reverse
is used or the content is directly exported to photon.
Fixes #939 .
2018-11-21 19:36:21 +01:00
Sarah Hoffmann
7da5196bac
setup: add convenience function for executing SQL commands
2018-11-21 12:18:13 +01:00
Sarah Hoffmann
7fd40cb0e6
Merge pull request #1238 from lonvia/simplify-version-check
...
Simplify parsing of postgres and postgis versions
2018-11-20 23:07:55 +01:00
Sarah Hoffmann
b6b1c23575
fix phpcs offences
2018-11-20 23:05:56 +01:00
Sarah Hoffmann
409ded385f
simplify connection handling in setup script
...
- factor out runWithEnv
- require explicit connect() call to avoid rechecking for oDB
(more for readability than for speed)
- clean DSNInfo of empty strings and simplify check for entries
2018-11-20 22:51:37 +01:00
Sarah Hoffmann
e2d0c9f3c1
fix variable prefix
2018-11-20 21:07:24 +01:00
Sarah Hoffmann
9cf85f90fb
Simplify parsing of postgres and postgis versions
...
Switch to functions server_version_num and postgis_lib_version
which both only return the version string, so that no elaborate
string parsing is necessary anymore. The version string could
become especially cumbersome in pre-release versions.
2018-11-18 17:27:20 +01:00
Sarah Hoffmann
fb796d14ec
Always ignore continents for addresses
...
Fixes #1236 .
2018-11-18 17:00:59 +01:00
Sarah Hoffmann
43c2eb383e
Remove country and state nodes from address computation
...
OSM has by now almost complete coverage of admin
boundaries up to state level. Place nodes will do more
harm than good in this case.
2018-11-17 23:32:08 +01:00
name
2bc46b8f21
match languages such as ja_rm (or any other with underscore) properly
2018-11-17 20:20:06 +02:00
Sarah Hoffmann
c84648c157
update osm2pgsql (restrict operator)
...
Fixes #1176 .
2018-11-17 17:32:30 +01:00