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
Edward Betts
c404c9a752
New check_is_street_number_first function
2021-07-03 13:38:37 +02:00
Edward Betts
1ab09a2864
Consider more Wikidata properties when looking for OSM tags
2021-07-03 13:37:30 +02:00
Edward Betts
e62dd4d1d6
Improve OSM name handling
2021-07-02 11:14:37 +02:00
Edward Betts
72c32f38ce
Also skip Key:addr and Key:lit
2021-07-02 11:04:43 +02:00
Edward Betts
f76ace2a98
Switch from Geography to Geometry meant distances were wrong.
2021-06-28 11:51:11 +02:00
Edward Betts
238fbeef05
Avoid matching tram stops with buildings
2021-06-28 11:50:37 +02:00
Edward Betts
1fc822c152
Bug fix lat/lon order
2021-06-28 11:48:02 +02:00
Edward Betts
08684fd9c4
Ignore Key:lit to get better matches for streetlamps
2021-06-25 15:04:33 +02:00
Edward Betts
3f18ea2816
Key:lit should not match lit=no
2021-06-25 14:59:48 +02:00
Edward Betts
34b2d0fa05
Split API logic out of web_view.py
2021-06-25 14:52:42 +02:00