Commit Graph

104 Commits

Author SHA1 Message Date
Edward Betts 503280cfc1 Add docstrings and types 2023-05-14 10:40:59 +00:00
Edward Betts f14cb36896 Bug fix 2023-05-14 10:37:14 +00:00
Edward Betts d1e5a31225 Update version in User-Agent header 2023-05-14 10:33:18 +00:00
Edward Betts dfb282b468 Don't show debugging output. 2023-05-14 10:31:56 +00:00
Edward Betts 6ce8b30fcc Merge branch 'main' of github.com:EdwardBetts/owl-map 2023-05-14 10:30:15 +00:00
Edward Betts 24e053f450 Add missing code. 2023-05-14 11:11:23 +02:00
Edward Betts a4e847355e Docstrings and types. 2023-05-14 11:07:22 +02:00
Edward Betts 96002254ad Docstrings and types. 2023-05-14 11:07:14 +02:00
Edward Betts fd35658e51 Update 2023-05-14 11:06:34 +02:00
Edward Betts 2e8ff40d3d Update 2023-05-14 11:06:08 +02:00
Edward Betts 54151bb1bb Add missing code 2023-05-14 10:38:11 +02:00
Edward Betts 733ca3aa8f Update 2023-05-13 21:57:58 +02:00
Edward Betts c607351699 Update 2023-05-13 15:01:28 +02:00
Edward Betts 6d9c7fb1bc Include identifiers in item details API call 2022-04-18 12:52:11 +01:00
Edward Betts 90b83e93ad Add methods to get item identifiers 2022-04-18 12:51:44 +01:00
Edward Betts c95b58fde9 Reformat with black 2022-04-18 12:51:02 +01:00
Edward Betts 74788872a3 Add docstrings 2022-04-18 12:26:04 +01:00
Edward Betts 46db0b7401 Bug fix 2022-04-18 12:25:50 +01:00
Edward Betts 302da85e33 Optional isa_filter for wikidata_isa_counts 2022-04-18 12:25:38 +01:00
Edward Betts 87005dea18 New API call to get items in a place 2022-04-18 12:24:45 +01:00
Edward Betts a81cedaae0 Sometimes the address->country field is missing 2022-04-17 17:06:46 +01:00
Edward Betts e07af0b2a4 Various improvements 2022-04-08 10:44:39 +01:00
Edward Betts d0ddd5204c Various improvements 2022-04-08 10:41:18 +01:00
Edward Betts 697fdf1d6d Remove unused code 2022-04-08 10:37:59 +01:00
Edward Betts c1e53c727f Improve date formatting 2022-04-08 10:35:21 +01:00
Edward Betts 4645133247 Include more dates in item detail 2021-11-19 15:43:18 +00:00
Edward Betts f60b938dc1 Avoid name match crash for OSM objects with no name 2021-11-19 15:43:04 +00:00
Edward Betts c2cc7ba5b1 Bug fix slow get_part_of for items with multiple markers 2021-11-19 15:40:11 +00:00
Edward Betts cfa912102c Add name_match to nearby OSM candidates API call. 2021-11-14 09:47:55 +00:00
Edward Betts 4f6f0ed086 Remove unused code 2021-11-14 08:01:19 +00:00
Edward Betts 5693bc6265 Code formatting 2021-11-14 07:58:40 +00:00
Edward Betts 9a841921f4 Include labels for ISA items in item detail. 2021-11-13 20:19:04 +00:00
Edward Betts 1771f19f56 Alert admin about unsupported time precision 2021-11-13 16:41:15 +00:00
Edward Betts 7b181cd1b3 Better output for centuries in format_wikibase_time + tests. 2021-11-13 16:27:46 +00:00
Edward Betts fd5829f8d2 Accept precision=7 (century) for time format 2021-11-13 10:45:46 +00:00
Edward Betts b22d4058fd Add new get_tags_for_isa_item function 2021-11-13 10:44:56 +00:00
Edward Betts ed56bdc767 Add industrial park (Q329683) to stop list. 2021-11-12 12:18:53 +00:00
Edward Betts 734dd4025c Make skip_tags global. 2021-11-12 12:17:59 +00:00
Edward Betts 66f214a51b Don't call session.commit in get_item function. 2021-11-12 12:17:15 +00:00
Edward Betts 14abffe79c Avoid crash when searching for USA 2021-10-22 10:01:46 +01:00
Edward Betts 9c426b2918 Item methods to work out if it is a linear feature 2021-10-22 09:54:04 +01:00
Edward Betts 38e23ec8cc New method to get IsA details for item 2021-10-22 09:53:40 +01:00
Edward Betts 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
Edward Betts c1fc249a14 Remove unused code 2021-10-22 09:43:36 +01:00
Edward Betts dd7a92de77 Update extra keys 2021-10-22 09:43:14 +01:00
Edward Betts 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
Edward Betts db7b13b706 Skip more tags 2021-10-15 09:49:08 +01:00
Edward Betts 8efbc8a9c1 assembly plant (Q47509284) should match landuse=brownfield 2021-10-09 18:04:52 +02:00
Edward Betts b4882a8e9f Add some extra tags to consider 2021-10-09 13:00:43 +02:00
Edward Betts b49d92b0bd Include heritage designation in Wikidata item details 2021-10-06 18:43:37 +02:00