]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
4 years agoaddress ranks must not invert admin_level hierarchy
Sarah Hoffmann [Wed, 8 Apr 2020 08:04:49 +0000 (10:04 +0200)]
address ranks must not invert admin_level hierarchy

When inheriting an address rank from a linked place we
must be careful not to destroy the hierarchy established
through boundary admin_level. Therefore, before assigning
an address rank from a linked place, find the next higher
boundary in the admin_level hierarchy, look up its address
rank and then only use the address rank from the linked
place if it is higher.

4 years agoMerge branch 'update-jquery-leaflet' of https://github.com/mtmail/Nominatim into...
Sarah Hoffmann [Sat, 11 Apr 2020 18:53:14 +0000 (20:53 +0200)]
Merge branch 'update-jquery-leaflet' of https://github.com/mtmail/Nominatim into mtmail-update-jquery-leaflet

4 years agoMerge pull request #1749 from lonvia/ranking-during-updates
Sarah Hoffmann [Sat, 11 Apr 2020 18:52:05 +0000 (20:52 +0200)]
Merge pull request #1749 from lonvia/ranking-during-updates

Reset search and address ranks on update

4 years agowebsite dependencies: jQuery v2.1 => 3.5, leaflet 1.3 => 1.6
marc tobias [Sat, 11 Apr 2020 16:18:57 +0000 (18:18 +0200)]
website dependencies: jQuery v2.1 => 3.5, leaflet 1.3 => 1.6

4 years agoreset address and search ranks on update
Sarah Hoffmann [Sat, 11 Apr 2020 07:20:13 +0000 (09:20 +0200)]
reset address and search ranks on update

With ranks being dynamically changed through linking of places,
it is important to reset the ranks on update, so that changes
of the rank due to changes in linking are correctly taken into
account.

4 years agofactor out computation of address and search rank
Sarah Hoffmann [Fri, 10 Apr 2020 20:37:14 +0000 (22:37 +0200)]
factor out computation of address and search rank

4 years agomake admin levels 3 and 7 distinct ones in addresses
Sarah Hoffmann [Fri, 10 Apr 2020 20:56:55 +0000 (22:56 +0200)]
make admin levels 3 and 7 distinct ones in addresses

There really is no need to conflate these two levels as they
are in use in various countries.

Also adds province as a distinct place.

Fixes #1736.

4 years agoMerge pull request #1745 from lonvia/shuffle-sql-functions
Sarah Hoffmann [Fri, 10 Apr 2020 15:23:09 +0000 (17:23 +0200)]
Merge pull request #1745 from lonvia/shuffle-sql-functions

Some more SQL function reorganisation

4 years agoMerge branch 'deletable-and-polygons-as-json' of https://github.com/mtmail/Nominatim...
Sarah Hoffmann [Fri, 10 Apr 2020 15:20:51 +0000 (17:20 +0200)]
Merge branch 'deletable-and-polygons-as-json' of https://github.com/mtmail/Nominatim into mtmail-deletable-and-polygons-as-json

4 years agoAdd JSON output for /deletable.php and /polygons.php
marc tobias [Fri, 10 Apr 2020 01:21:52 +0000 (03:21 +0200)]
Add JSON output for /deletable.php and /polygons.php

4 years agomove ranks-related functions in separate sql file
Sarah Hoffmann [Fri, 10 Apr 2020 09:34:14 +0000 (11:34 +0200)]
move ranks-related functions in separate sql file

Also adds a common function for computing the update radius
around place nodes.

4 years agomove helper functions from placex_triggers into utils
Sarah Hoffmann [Fri, 10 Apr 2020 09:05:11 +0000 (11:05 +0200)]
move helper functions from placex_triggers into utils

Also adds documentation for these functions.

4 years agoMerge pull request #1742 from mtmail/travis-ci-add-os
Sarah Hoffmann [Fri, 10 Apr 2020 06:46:50 +0000 (08:46 +0200)]
Merge pull request #1742 from mtmail/travis-ci-add-os

Travis-Ci configuration: remove -sudo-, add -os-

4 years agotravis-ci configuration: remove -sudo-, add -os-
marc tobias [Thu, 9 Apr 2020 23:20:51 +0000 (01:20 +0200)]
travis-ci configuration: remove -sudo-, add -os-

4 years agoMerge pull request #1741 from filimongeorge/patch-1
Sarah Hoffmann [Thu, 9 Apr 2020 21:00:34 +0000 (23:00 +0200)]
Merge pull request #1741 from filimongeorge/patch-1

Updated Import and Update .md file

4 years agoMerge pull request #1740 from mtmail/setupclass-index-outputfile-not-used
Sarah Hoffmann [Thu, 9 Apr 2020 20:57:51 +0000 (22:57 +0200)]
Merge pull request #1740 from mtmail/setupclass-index-outputfile-not-used

SetupClass.php: remove unused variable

4 years agoMerge pull request #1739 from lonvia/remove-self-from-geojson
Sarah Hoffmann [Thu, 9 Apr 2020 20:51:20 +0000 (22:51 +0200)]
Merge pull request #1739 from lonvia/remove-self-from-geojson

Further tweaks to geocodejson output

4 years agoUpdated Import and Update .md file
filimongeorge [Thu, 9 Apr 2020 17:51:38 +0000 (20:51 +0300)]
Updated Import and Update .md file

4 years agoSetupClass.php: remove unused variable
marc tobias [Wed, 8 Apr 2020 12:16:06 +0000 (14:16 +0200)]
SetupClass.php: remove unused variable

4 years agoremove name from geocodejson when not set
Sarah Hoffmann [Wed, 8 Apr 2020 09:12:27 +0000 (11:12 +0200)]
remove name from geocodejson when not set

4 years agoadapt tests to geocodejson format adaptions
Sarah Hoffmann [Wed, 8 Apr 2020 09:11:53 +0000 (11:11 +0200)]
adapt tests to geocodejson format adaptions

4 years agofurther tweaks to geocodejson address output
Sarah Hoffmann [Wed, 8 Apr 2020 08:11:08 +0000 (10:11 +0200)]
further tweaks to geocodejson address output

Removes the place itself from the address details and use
the lowest ranking element in the rank range for the output.

4 years agoignore isaddress in details output when it is not present
Sarah Hoffmann [Wed, 8 Apr 2020 08:28:28 +0000 (10:28 +0200)]
ignore isaddress in details output when it is not present

4 years agoMerge pull request #1737 from mtmail/expose-isaddress-in-details-json
Sarah Hoffmann [Tue, 7 Apr 2020 18:49:31 +0000 (20:49 +0200)]
Merge pull request #1737 from mtmail/expose-isaddress-in-details-json

details JSON: also print isaddress addressline field

4 years agodetails JSON: also print isaddress addressline field
marc tobias [Tue, 7 Apr 2020 12:50:41 +0000 (14:50 +0200)]
details JSON: also print isaddress addressline field

4 years agoMerge pull request #1734 from krahulreddy/fixed-parselatlon
Sarah Hoffmann [Sun, 5 Apr 2020 21:25:50 +0000 (23:25 +0200)]
Merge pull request #1734 from krahulreddy/fixed-parselatlon

Added whitespace support for parseLatLon

4 years agoavoid deletes on search_name in reverse-only mode
Sarah Hoffmann [Sat, 4 Apr 2020 16:26:27 +0000 (18:26 +0200)]
avoid deletes on search_name in reverse-only mode

4 years agoAdded test cases for whitespaces in LatLon
Rahul [Fri, 3 Apr 2020 16:39:11 +0000 (22:09 +0530)]
Added test cases for whitespaces in LatLon

4 years agoAdded whitespace characters support in LatLon parsing
Rahul [Fri, 3 Apr 2020 16:14:27 +0000 (21:44 +0530)]
Added whitespace characters support in LatLon parsing

4 years agofix phpcs issues
Sarah Hoffmann [Fri, 3 Apr 2020 18:07:50 +0000 (20:07 +0200)]
fix phpcs issues

4 years agoMerge pull request #1733 from krahulreddy/whitespaces-considered-as-single-space
Sarah Hoffmann [Fri, 3 Apr 2020 16:01:47 +0000 (18:01 +0200)]
Merge pull request #1733 from krahulreddy/whitespaces-considered-as-single-space

Support whitespace characters(x09-x0d) as single space

4 years agoMerge pull request #1732 from lonvia/improve-geocodejson-output
Sarah Hoffmann [Thu, 2 Apr 2020 19:21:04 +0000 (21:21 +0200)]
Merge pull request #1732 from lonvia/improve-geocodejson-output

Improve geocodejson output

4 years agoSupport whitespace characters(x09-x0d) as single space
K Rahul Reddy [Wed, 1 Apr 2020 23:34:40 +0000 (05:04 +0530)]
Support whitespace characters(x09-x0d) as single space

4 years agore-add district to geocodejson
Sarah Hoffmann [Wed, 1 Apr 2020 19:24:42 +0000 (21:24 +0200)]
re-add district to geocodejson

4 years agoupdate documentation for geocodejson
Sarah Hoffmann [Wed, 1 Apr 2020 09:17:25 +0000 (11:17 +0200)]
update documentation for geocodejson

Address parts should be usable now.

4 years agoadd tests for geocodejson address fields
Sarah Hoffmann [Wed, 1 Apr 2020 09:14:48 +0000 (11:14 +0200)]
add tests for geocodejson address fields

4 years agodetermine geocodejson address by rank instead of type
Sarah Hoffmann [Wed, 1 Apr 2020 09:12:52 +0000 (11:12 +0200)]
determine geocodejson address by rank instead of type

Using the address rank to set the address parts catches
a much wider variety of types like 'town' and 'suburb'.
With recent address ranking changes the rank ranges
are relatively reliable.

4 years agofactor out geocodejson address generation
Sarah Hoffmann [Wed, 1 Apr 2020 08:27:17 +0000 (10:27 +0200)]
factor out geocodejson address generation

Unifies the two implementations currently used for search and address.

4 years agoMerge pull request #1731 from lonvia/remove-polygon-from-docs
Sarah Hoffmann [Wed, 1 Apr 2020 08:21:45 +0000 (10:21 +0200)]
Merge pull request #1731 from lonvia/remove-polygon-from-docs

docs: remove example with polygon parameter

4 years agodocs: remove example with polygon parameter
Sarah Hoffmann [Tue, 31 Mar 2020 18:10:03 +0000 (20:10 +0200)]
docs: remove example with polygon parameter

This parameter was undocumented, long deprecated and is gone now.

4 years agofix typo
Sarah Hoffmann [Tue, 31 Mar 2020 17:53:55 +0000 (19:53 +0200)]
fix typo

Fixes #1730

4 years agofix handling of postcode areas in addresses
Sarah Hoffmann [Mon, 30 Mar 2020 21:27:48 +0000 (23:27 +0200)]
fix handling of postcode areas in addresses

The order of preference is now:
1. a post code on the place itself
2. a post code area in the address
3. the computed postcode from the place

Fixes #1723.

4 years agoadapt tests to new borough ranking
Sarah Hoffmann [Mon, 30 Mar 2020 21:04:20 +0000 (23:04 +0200)]
adapt tests to new borough ranking

4 years agodowngrade borough and remove unincorporated area
Sarah Hoffmann [Mon, 30 Mar 2020 16:30:11 +0000 (18:30 +0200)]
downgrade borough and remove unincorporated area

4 years agoMerge pull request #1729 from lonvia/fix-details-link-for-boundaries
Sarah Hoffmann [Sun, 29 Mar 2020 21:12:16 +0000 (23:12 +0200)]
Merge pull request #1729 from lonvia/fix-details-link-for-boundaries

Fix details link for boundaries

4 years agoremove polygon=1 (polypoints) feature
marc tobias [Tue, 5 Mar 2019 17:14:25 +0000 (18:14 +0100)]
remove polygon=1 (polypoints) feature

4 years agoalso emit place_type in json version of details
Sarah Hoffmann [Sun, 29 Mar 2020 19:06:39 +0000 (21:06 +0200)]
also emit place_type in json version of details

4 years agorather use new place_type in getAddressNames()
Sarah Hoffmann [Sun, 29 Mar 2020 18:49:35 +0000 (20:49 +0200)]
rather use new place_type in getAddressNames()

If for a boundary the place_type is defined, handle the address
part like a place node. This is the same behaviour as before
when class/type where patched earlier.

4 years agoFix address link for boundaries in details
Sarah Hoffmann [Sun, 29 Mar 2020 15:40:56 +0000 (17:40 +0200)]
Fix address link for boundaries in details

Removes the special casing for boundaries with a place
type in get_addressdata(). Instead the place type is now
returned as an extra field, so that the caller has to
handle the situation.

This fixes the details link next to the address in the details
view, which previously would go to a place class instead of the
original boundary class.

4 years agoMerge pull request #1720 from lonvia/better-linking-of-places
Sarah Hoffmann [Fri, 27 Mar 2020 20:12:39 +0000 (21:12 +0100)]
Merge pull request #1720 from lonvia/better-linking-of-places

Use wikidata tags for improving linking of places with boundaries

4 years agoUpdated TIGER database link in documentation (#1725)
Aakankasha Sharma [Fri, 27 Mar 2020 14:50:05 +0000 (20:20 +0530)]
Updated TIGER database link in documentation (#1725)

Updated TIGER database link in documentation

4 years agoadapt API tests to place linkage changes
Sarah Hoffmann [Wed, 25 Mar 2020 10:38:31 +0000 (11:38 +0100)]
adapt API tests to place linkage changes

The missing district is due to a data error for wikidata tags.

4 years agouse wikidata tag for linking places
Sarah Hoffmann [Sat, 21 Mar 2020 21:43:28 +0000 (22:43 +0100)]
use wikidata tag for linking places

Having the same wikidata is a strong indicator that the same place
is meant. There are some assignment errors where the wikidata does
not link to the object itself but to something that mentions the
place. To reduce errors there, prefer same name.

4 years agoremove linking via admin_centre role
Sarah Hoffmann [Sat, 21 Mar 2020 20:59:11 +0000 (21:59 +0100)]
remove linking via admin_centre role

The admin_centre role is for the seat of government which is not
the same as the administrative entity. This is mostly used
correctly these days, so avoid matching by that role.

4 years agolinking: better name matching for address-less places
Sarah Hoffmann [Sat, 21 Mar 2020 20:57:04 +0000 (21:57 +0100)]
linking: better name matching for address-less places

Administrative boundaries that do not figure in the address
should still be able to take part in the name matching.
Use the rank_search for comparison in this case.

4 years agoMerge pull request #1706 from mtmail/warn-if-no-tiger-files-found
Sarah Hoffmann [Fri, 6 Mar 2020 21:55:37 +0000 (22:55 +0100)]
Merge pull request #1706 from mtmail/warn-if-no-tiger-files-found

print warning if no Tiger files found

4 years agoMerge pull request #1707 from lonvia/regression-address-in-area
Sarah Hoffmann [Fri, 6 Mar 2020 21:55:24 +0000 (22:55 +0100)]
Merge pull request #1707 from lonvia/regression-address-in-area

place node address parts must be in lower rank area

4 years agoplace node address parts must be in lower rank area
Sarah Hoffmann [Fri, 6 Mar 2020 20:51:38 +0000 (21:51 +0100)]
place node address parts must be in lower rank area

This fixes a regression where the area of the lower ranking
area was not computed correctly.

Also excludes postcodes areas now as they have their own
hierarchy.

4 years agoprint warning if no Tiger files found
marc tobias [Fri, 6 Mar 2020 16:52:46 +0000 (17:52 +0100)]
print warning if no Tiger files found

4 years agoMerge pull request #1705 from lonvia/delete-linkee-from-search-name
Sarah Hoffmann [Wed, 4 Mar 2020 10:55:05 +0000 (11:55 +0100)]
Merge pull request #1705 from lonvia/delete-linkee-from-search-name

Remove linkees from search_name

4 years agoRemove linkees from search_name
Sarah Hoffmann [Wed, 4 Mar 2020 10:35:01 +0000 (11:35 +0100)]
Remove linkees from search_name

Fixes #722

4 years agoMerge pull request #1704 from lonvia/centroid-within-geometry
Sarah Hoffmann [Wed, 4 Mar 2020 09:18:57 +0000 (10:18 +0100)]
Merge pull request #1704 from lonvia/centroid-within-geometry

linked centroids must always be within geometry

4 years agolinked centroids must always be within geometry
Sarah Hoffmann [Wed, 4 Mar 2020 08:59:57 +0000 (09:59 +0100)]
linked centroids must always be within geometry

When using a linked place as centroid for a boundary, check
first that it is really within the area. If it is outside,
just keep the computed centroid because a centroid outside the
area just causes havok.

Fixes #1352.

4 years agoMerge pull request #1702 from lonvia/rename-derived-place
Sarah Hoffmann [Wed, 4 Mar 2020 07:08:39 +0000 (08:08 +0100)]
Merge pull request #1702 from lonvia/rename-derived-place

Make admin boundaries inherit address rank from place nodes

4 years agofix style
Sarah Hoffmann [Sun, 1 Mar 2020 21:24:32 +0000 (22:24 +0100)]
fix style

4 years agobetter grouping
Sarah Hoffmann [Fri, 28 Feb 2020 21:10:35 +0000 (22:10 +0100)]
better grouping

4 years agooutput linked place into address details
Sarah Hoffmann [Fri, 28 Feb 2020 21:07:06 +0000 (22:07 +0100)]
output linked place into address details

4 years agoadd testing for rank adaption while linking
Sarah Hoffmann [Fri, 21 Feb 2020 15:35:59 +0000 (16:35 +0100)]
add testing for rank adaption while linking

4 years agolink against place nodes by place type
Sarah Hoffmann [Wed, 19 Feb 2020 08:50:19 +0000 (09:50 +0100)]
link against place nodes by place type

If a boundary relation has no label member preferably
link against a place node with the same place type.

Also inherit the rank_address from the place node (only
has an effect when linking via lable member or place type).

4 years agomove linked place type into linked_place extratags
Sarah Hoffmann [Sun, 9 Feb 2020 21:26:53 +0000 (22:26 +0100)]
move linked place type into linked_place extratags

Using linked_place means that we don't overwrite any
place tags on the boundary. This is important when we
wanto to use the information for linking.

4 years agoMerge pull request #1698 from lonvia/cleanup-partition-functions
Sarah Hoffmann [Wed, 26 Feb 2020 19:21:10 +0000 (20:21 +0100)]
Merge pull request #1698 from lonvia/cleanup-partition-functions

Cleanup partition functions

4 years agomake all query partition functions stable
Sarah Hoffmann [Wed, 26 Feb 2020 10:41:49 +0000 (11:41 +0100)]
make all query partition functions stable

4 years agoremove unused nearfeature types
Sarah Hoffmann [Wed, 26 Feb 2020 09:42:30 +0000 (10:42 +0100)]
remove unused nearfeature types

Also move the remaining nearfeaturecentr type close to the
function that is using it.

4 years agosimplify getNearestParallelRoadFeature function
Sarah Hoffmann [Wed, 26 Feb 2020 09:14:28 +0000 (10:14 +0100)]
simplify getNearestParallelRoadFeature function

The function only ever returns one result of which only the
place_id is used. So simplify it to return a single place_id
only (or NULL if none is found).

Also fix typo in function name.

4 years agosimplify getNearestRoadFeature function
Sarah Hoffmann [Wed, 26 Feb 2020 09:04:17 +0000 (10:04 +0100)]
simplify getNearestRoadFeature function

The function only ever returns one result of which only the
place_id is used. So simplify it to return a single place_id
only (or NULL if none is found). Rename funciton to avoid
conflicts when updating an existing database.

4 years agoadvise against using Postgresql 12 and Postgis 3
Sarah Hoffmann [Tue, 25 Feb 2020 08:44:32 +0000 (09:44 +0100)]
advise against using Postgresql 12 and Postgis 3

See also #1677

4 years agorevert using stricter uniqueness constraint on place
Sarah Hoffmann [Mon, 24 Feb 2020 21:42:03 +0000 (22:42 +0100)]
revert using stricter uniqueness constraint on place

Multiple objects with the same (osm_type, osm_id, class) may
exist when we hold back deleting an area because it is so
large.

Fixes #1695.

4 years agoMerge pull request #1693 from lonvia/reorganize-addressline-computation
Sarah Hoffmann [Mon, 24 Feb 2020 21:39:51 +0000 (22:39 +0100)]
Merge pull request #1693 from lonvia/reorganize-addressline-computation

Reorganize addressline computation

4 years agoadapt API tests
Sarah Hoffmann [Sat, 22 Feb 2020 15:46:03 +0000 (16:46 +0100)]
adapt API tests

4 years agomove address line computation in its own function
Sarah Hoffmann [Wed, 5 Feb 2020 09:12:43 +0000 (10:12 +0100)]
move address line computation in its own function

4 years agoMerge pull request #1692 from mtmail/tests-for-HasSetAny
Sarah Hoffmann [Thu, 20 Feb 2020 20:16:39 +0000 (21:16 +0100)]
Merge pull request #1692 from mtmail/tests-for-HasSetAny

unit tests for ParameterParser::hasSetAny

4 years agounit tests for ParameterParser::hasSetAny
marc tobias [Wed, 19 Feb 2020 15:55:17 +0000 (16:55 +0100)]
unit tests for ParameterParser::hasSetAny

4 years agoMerge pull request #1691 from lonvia/structured-query-via-cmdline
Sarah Hoffmann [Wed, 19 Feb 2020 10:12:37 +0000 (11:12 +0100)]
Merge pull request #1691 from lonvia/structured-query-via-cmdline

add structured search to command-line query tool

4 years agoadd structured search to command-line query tool
Sarah Hoffmann [Wed, 19 Feb 2020 09:20:18 +0000 (10:20 +0100)]
add structured search to command-line query tool

4 years agoMerge pull request #1690 from lonvia/parenting-large-rank-30-areas
Sarah Hoffmann [Wed, 19 Feb 2020 08:20:12 +0000 (09:20 +0100)]
Merge pull request #1690 from lonvia/parenting-large-rank-30-areas

improve parenting for large areas with rank 30

4 years agoimprove parenting for large areas with rank 30
Sarah Hoffmann [Wed, 5 Feb 2020 20:33:24 +0000 (21:33 +0100)]
improve parenting for large areas with rank 30

Instead of unconditionally parenting them to a street, the
larger areas get a parent area that contains them. To keep
things computationally light-weight, only use the centroid and
bbox to determine if an area is contained.

Requires renaming of parenting functions because renaming
a parameter of the function causes issues when updating the
function (it requires a manual delete, which I'd like to
avoid).

4 years agoMerge pull request #1689 from mtmail/travis-postgres-stopped-working
Sarah Hoffmann [Wed, 19 Feb 2020 07:00:08 +0000 (08:00 +0100)]
Merge pull request #1689 from mtmail/travis-postgres-stopped-working

Travis: documentation suggests we need to add postgresql-client package

4 years agoTravis: documentation suggests we need to add postgresql-client package pre-startup
marc tobias [Tue, 18 Feb 2020 22:37:06 +0000 (23:37 +0100)]
Travis: documentation suggests we need to add postgresql-client package pre-startup

4 years agoMerge pull request #1688 from mtmail/snippet-noun-vs-snipped-verb
Sarah Hoffmann [Tue, 18 Feb 2020 21:55:20 +0000 (22:55 +0100)]
Merge pull request #1688 from mtmail/snippet-noun-vs-snipped-verb

documentation wording: snipped->snippet

4 years agodocumentation wording: snipped->snippet
marc tobias [Tue, 18 Feb 2020 21:48:27 +0000 (22:48 +0100)]
documentation wording: snipped->snippet

4 years agomake sure that linked places are within a boundary
Sarah Hoffmann [Tue, 18 Feb 2020 21:46:32 +0000 (22:46 +0100)]
make sure that linked places are within a boundary

This is a regression from previous code refactoring.

Fixes #1684.

4 years agoadd bbox whereclause to make postgis 3.0 happy
Sarah Hoffmann [Sun, 16 Feb 2020 13:10:22 +0000 (14:10 +0100)]
add bbox whereclause to make postgis 3.0 happy

Normally ST_Covers() should include a bbox index use,
so adding a bbox where clause is not really necessary.
However, the query planner messes up and uses a parallel
index search with a second index instead of exclusively
running on the geometry index, when the bbox part is
missing.

4 years agoMerge pull request #1678 from lonvia/early-drop
Sarah Hoffmann [Thu, 13 Feb 2020 21:50:41 +0000 (22:50 +0100)]
Merge pull request #1678 from lonvia/early-drop

Clean up intermediate tables earlier with --drop

4 years agofix duplicate keys in tests
Sarah Hoffmann [Wed, 12 Feb 2020 10:29:33 +0000 (11:29 +0100)]
fix duplicate keys in tests

The tests suddenly failed because the unique key constraint
is more strict and does no longer include the type.

4 years agoclean up intermediate tables earlier with --drop
Sarah Hoffmann [Wed, 12 Feb 2020 10:03:20 +0000 (11:03 +0100)]
clean up intermediate tables earlier with --drop

When --drop is given, we can remove all node geometry information
already after the import with osm2pgsql. Also drop all unnecessary
tables before creating the final indices.

4 years agoMerge pull request #1675 from lonvia/refresh-connection-while-indexing
Sarah Hoffmann [Wed, 12 Feb 2020 07:18:09 +0000 (08:18 +0100)]
Merge pull request #1675 from lonvia/refresh-connection-while-indexing

Fix a couple of issues with the new Python nominatim script

4 years agoMerge pull request #1674 from mtmail/testdb-how-to-select-tiger-data
Sarah Hoffmann [Tue, 11 Feb 2020 21:57:39 +0000 (22:57 +0100)]
Merge pull request #1674 from mtmail/testdb-how-to-select-tiger-data

document how to extract subset of TIGER data needed for API tests

4 years agoMerge pull request #1673 from mtmail/wikidata-wget-incomplete
Sarah Hoffmann [Tue, 11 Feb 2020 21:56:45 +0000 (22:56 +0100)]
Merge pull request #1673 from mtmail/wikidata-wget-incomplete

wikipedia: wget didnt download, skip index generation

4 years agopsycopg 2.6 is now usable on ubuntu 16
Sarah Hoffmann [Tue, 11 Feb 2020 21:49:03 +0000 (22:49 +0100)]
psycopg 2.6 is now usable on ubuntu 16

4 years agonominatim.py: use async in connect() function
Sarah Hoffmann [Tue, 11 Feb 2020 21:08:04 +0000 (22:08 +0100)]
nominatim.py: use async in connect() function

The _async parameter name is only supported since psycopg 2.7.
However, async is a keyword in Python >= 3.7, so using this
gives us a syntax error. Working around this by defining the
parameters in a dict and handing that into the connect function.