Commit Graph

60 Commits

Author SHA1 Message Date
Edward Betts 6ada61e09b Update code to work with SQLAlchemy 2 2023-11-02 09:19:36 +00:00
Edward Betts 5e8d1a99b0 Add types and docstrings + upgrade to SQLAlchmey 2 2023-11-01 20:54:19 +00:00
Edward Betts 82671959bb Cast Point to Geography 2023-10-31 15:35:18 +00:00
Edward Betts 28323b128d Add types and docstrings 2023-10-31 14:41:59 +00:00
Edward Betts 6168c0eb4e Remove commented out debugging code 2023-10-31 14:41:15 +00:00
Edward Betts 2229605672 Avoid making queries with 100s of parameters 2023-10-31 14:40:07 +00:00
Edward Betts 5449564318 Remove debugging output. 2023-05-20 06:37:16 +00:00
Edward Betts 1a43996180 Bug fix. 2023-05-20 06:36:59 +00:00
Edward Betts b8ed296f78 Type hints and docstrings. 2023-05-17 16:28:44 +00:00
Edward Betts 8e41dcab58 Type hints and docstrings. 2023-05-15 15:30:06 +00:00
Edward Betts 3bc6863b49 Type hints 2023-05-14 21:05:07 +00:00
Edward Betts b49ac353f5 Type hints and docstrings. 2023-05-14 21:04:26 +00:00
Edward Betts 49510843a7 import flask 2023-05-14 20:42:08 +00:00
Edward Betts 39ee7d1b0f Type hints and docstrings. 2023-05-14 20:40:16 +00:00
Edward Betts 384eb859b8 Type hints and docstrings. 2023-05-14 20:29:24 +00:00
Edward Betts 3f7df22083 Add types. 2023-05-14 20:20:28 +00:00
Edward Betts b1ae7aa8dd Add types. 2023-05-14 18:17:16 +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 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 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 e07af0b2a4 Various improvements 2022-04-08 10:44:39 +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 9a841921f4 Include labels for ISA items in item detail. 2021-11-13 20:19:04 +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 db7b13b706 Skip more tags 2021-10-15 09:49:08 +01:00
Edward Betts b49d92b0bd Include heritage designation in Wikidata item details 2021-10-06 18:43:37 +02:00
Edward Betts 9b7f6ee878 Add item type filter 2021-07-30 16:02:41 +02:00
Edward Betts 641490f4ea Library items don't need to look for the Key:office tag 2021-07-23 14:38:13 +02:00
Edward Betts a1a3695857 Bug fix for items with multiple locations 2021-07-22 17:09:04 +02:00
Edward Betts 2760cdb940 Use sets in get_item_tags 2021-07-22 17:07:26 +02:00
Edward Betts 8d8f16d757 Remove debugging output 2021-07-22 15:10:40 +02:00
Edward Betts 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
Edward Betts 3e5dc908fa Adjust distance and limit for nearby OSM 2021-07-16 11:10:37 +02:00
Edward Betts dfed99a8bc Include centroids in nearby OSM list 2021-07-16 11:09:59 +02:00
Edward Betts 6d4a416f5a no need to include OSM URL in OSM with wikidata tag API reply 2021-07-16 11:09:52 +02:00
Edward Betts df2e514b02 More detail for part_of, not just name 2021-07-11 17:14:50 +02:00
Edward Betts fd76bcaa37 Include candidate OSM type and ID in nearby search 2021-07-11 17:14:31 +02:00
Edward Betts 22cfe64896 Include more detail in OSM tags API call 2021-07-03 13:39:37 +02:00