Commit graph

64 commits

Author SHA1 Message Date
3f04c82ba9 Improve get_item_street_addresses 2024-06-19 14:40:14 +01:00
468d1e49c7 Better fix for get_item_street_addresses 2024-06-19 14:34:16 +01:00
ba22e8e9df Bug fix get_item_street_addresses 2024-06-19 14:32:51 +01:00
88409852cf Bug fix 2024-05-04 07:02:30 +00:00
6ada61e09b Update code to work with SQLAlchemy 2 2023-11-02 09:19:36 +00:00
5e8d1a99b0 Add types and docstrings + upgrade to SQLAlchmey 2 2023-11-01 20:54:19 +00:00
82671959bb Cast Point to Geography 2023-10-31 15:35:18 +00:00
28323b128d Add types and docstrings 2023-10-31 14:41:59 +00:00
6168c0eb4e Remove commented out debugging code 2023-10-31 14:41:15 +00:00
2229605672 Avoid making queries with 100s of parameters 2023-10-31 14:40:07 +00:00
5449564318 Remove debugging output. 2023-05-20 06:37:16 +00:00
1a43996180 Bug fix. 2023-05-20 06:36:59 +00:00
b8ed296f78 Type hints and docstrings. 2023-05-17 16:28:44 +00:00
8e41dcab58 Type hints and docstrings. 2023-05-15 15:30:06 +00:00
3bc6863b49 Type hints 2023-05-14 21:05:07 +00:00
b49ac353f5 Type hints and docstrings. 2023-05-14 21:04:26 +00:00
49510843a7 import flask 2023-05-14 20:42:08 +00:00
39ee7d1b0f Type hints and docstrings. 2023-05-14 20:40:16 +00:00
384eb859b8 Type hints and docstrings. 2023-05-14 20:29:24 +00:00
3f7df22083 Add types. 2023-05-14 20:20:28 +00:00
b1ae7aa8dd Add types. 2023-05-14 18:17:16 +00:00
dfb282b468 Don't show debugging output. 2023-05-14 10:31:56 +00:00
6ce8b30fcc Merge branch 'main' of github.com:EdwardBetts/owl-map 2023-05-14 10:30:15 +00:00
733ca3aa8f Update 2023-05-13 21:57:58 +02:00
c607351699 Update 2023-05-13 15:01:28 +02:00
6d9c7fb1bc Include identifiers in item details API call 2022-04-18 12:52:11 +01:00
74788872a3 Add docstrings 2022-04-18 12:26:04 +01:00
46db0b7401 Bug fix 2022-04-18 12:25:50 +01:00
302da85e33 Optional isa_filter for wikidata_isa_counts 2022-04-18 12:25:38 +01:00
87005dea18 New API call to get items in a place 2022-04-18 12:24:45 +01:00
e07af0b2a4 Various improvements 2022-04-08 10:44:39 +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
9a841921f4 Include labels for ISA items in item detail. 2021-11-13 20:19:04 +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
db7b13b706 Skip more tags 2021-10-15 09:49:08 +01:00
b49d92b0bd Include heritage designation in Wikidata item details 2021-10-06 18:43:37 +02:00
9b7f6ee878 Add item type filter 2021-07-30 16:02:41 +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
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
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