Commit graph

85 commits

Author SHA1 Message Date
87005dea18 New API call to get items in a place 2022-04-18 12:24:45 +01:00
a81cedaae0 Sometimes the address->country field is missing 2022-04-17 17:06:46 +01:00
e07af0b2a4 Various improvements 2022-04-08 10:44:39 +01:00
d0ddd5204c Various improvements 2022-04-08 10:41:18 +01:00
697fdf1d6d Remove unused code 2022-04-08 10:37:59 +01:00
c1e53c727f Improve date formatting 2022-04-08 10:35:21 +01:00
4645133247 Include more dates in item detail 2021-11-19 15:43:18 +00:00
f60b938dc1 Avoid name match crash for OSM objects with no name 2021-11-19 15:43:04 +00:00
c2cc7ba5b1 Bug fix slow get_part_of for items with multiple markers 2021-11-19 15:40:11 +00:00
cfa912102c Add name_match to nearby OSM candidates API call. 2021-11-14 09:47:55 +00:00
4f6f0ed086 Remove unused code 2021-11-14 08:01:19 +00:00
5693bc6265 Code formatting 2021-11-14 07:58:40 +00:00
9a841921f4 Include labels for ISA items in item detail. 2021-11-13 20:19:04 +00:00
1771f19f56 Alert admin about unsupported time precision 2021-11-13 16:41:15 +00:00
7b181cd1b3 Better output for centuries in format_wikibase_time + tests. 2021-11-13 16:27:46 +00:00
fd5829f8d2 Accept precision=7 (century) for time format 2021-11-13 10:45:46 +00:00
b22d4058fd Add new get_tags_for_isa_item function 2021-11-13 10:44:56 +00:00
ed56bdc767 Add industrial park (Q329683) to stop list. 2021-11-12 12:18:53 +00:00
734dd4025c Make skip_tags global. 2021-11-12 12:17:59 +00:00
66f214a51b Don't call session.commit in get_item function. 2021-11-12 12:17:15 +00:00
14abffe79c Avoid crash when searching for USA 2021-10-22 10:01:46 +01:00
9c426b2918 Item methods to work out if it is a linear feature 2021-10-22 09:54:04 +01:00
38e23ec8cc New method to get IsA details for item 2021-10-22 09:53:40 +01:00
f291ce993e New table to store extra tags/keys
We get the OSM tags/keys for matching from the item types in Wikidata.

Sometimes we want to check extra tags/keys without adding them to
Wikidata.

This new table is a place to store them, instead of having them in the
source code.

In the future normal users will be able to add or remove extra
tags/keys.
2021-10-22 09:44:53 +01:00
c1fc249a14 Remove unused code 2021-10-22 09:43:36 +01:00
dd7a92de77 Update extra keys 2021-10-22 09:43:14 +01:00
7a3cb474ac Improve error handling
* Report errors to admin by e-mail
* Return details of error in JSON for API calls
* Show error details page for non-API calls
2021-10-22 08:02:46 +01:00
db7b13b706 Skip more tags 2021-10-15 09:49:08 +01:00
8efbc8a9c1 assembly plant (Q47509284) should match landuse=brownfield 2021-10-09 18:04:52 +02:00
b4882a8e9f Add some extra tags to consider 2021-10-09 13:00:43 +02:00
b49d92b0bd Include heritage designation in Wikidata item details 2021-10-06 18:43:37 +02:00
c47590dd65 Switch save default from mock to live. 2021-08-05 08:43:15 +02:00
95a9d16564 More tags to check for 2021-07-30 16:05:18 +02:00
9b7f6ee878 Add item type filter 2021-07-30 16:02:41 +02:00
3d578680a9 Consider roads to be streets 2021-07-23 14:39:19 +02:00
641490f4ea Library items don't need to look for the Key:office tag 2021-07-23 14:38:13 +02:00
a1a3695857 Bug fix for items with multiple locations 2021-07-22 17:09:04 +02:00
2760cdb940 Use sets in get_item_tags 2021-07-22 17:07:26 +02:00
206f25b343 Add extra tags 2021-07-22 17:01:56 +02:00
8d8f16d757 Remove debugging output 2021-07-22 15:10:40 +02:00
867e77ab7b Switch to SQLAlchemy Core for OSM objects
osm2pgsql creates tables without primary keys. Some OSM objects are
split into multiple table rows to help with PostGIS index performance.

Adjust the code to be aware of this.

Also add name matching for streets.
2021-07-22 14:47:38 +02:00
480df60d24 A thoroughfare is a type of street 2021-07-22 09:48:28 +02:00
a56387c4d9 Add get_osm method to Line class 2021-07-16 11:14:49 +02:00
66904c061a Add per user mock upload toggle with warnings 2021-07-16 11:14:05 +02:00
3e5dc908fa Adjust distance and limit for nearby OSM 2021-07-16 11:10:37 +02:00
dfed99a8bc Include centroids in nearby OSM list 2021-07-16 11:09:59 +02:00
6d4a416f5a no need to include OSM URL in OSM with wikidata tag API reply 2021-07-16 11:09:52 +02:00
9090e67bad Add more extra tags 2021-07-16 09:59:06 +02:00
5a42e100c7 Improve OSM search 2021-07-11 17:19:21 +02:00
072e5167db Increase nominatim search limit 2021-07-11 17:15:27 +02:00