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
480df60d24
A thoroughfare is a type of street
2021-07-22 09:48:28 +02:00
Edward Betts
a56387c4d9
Add get_osm method to Line class
2021-07-16 11:14:49 +02:00
Edward Betts
66904c061a
Add per user mock upload toggle with warnings
2021-07-16 11:14:05 +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
9090e67bad
Add more extra tags
2021-07-16 09:59:06 +02:00
Edward Betts
5a42e100c7
Improve OSM search
2021-07-11 17:19:21 +02:00
Edward Betts
072e5167db
Increase nominatim search limit
2021-07-11 17:15:27 +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
cb1864059a
Add extra tags for matching
2021-07-11 17:13:35 +02:00
Edward Betts
43e11cdfba
Add code that was missing from repo
2021-07-08 14:33:32 +02:00
Edward Betts
6b413ef553
Add extra tags for natural watercourse (Q55659167)
2021-07-08 14:33:11 +02:00
Edward Betts
0658976246
Handle items with no label
2021-07-06 17:24:57 +02:00
Edward Betts
792bfa176d
stream (Q4022) can match Key:waterway
2021-07-05 15:26:07 +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
906bdb7256
Add extra tags for museum and medical organization
2021-07-02 11:09:31 +02:00
Edward Betts
0aa2bfc4b7
Show date close date (P3999) in item detail
2021-07-02 11:08:53 +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
ed113d8d71
Add Key:highway as extra tag for thoroughfare (Q83620)
2021-06-28 11:48:39 +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
Edward Betts
e25aaa5ec6
Admin page for checking skip IsA list
2021-06-25 14:52:06 +02:00
Edward Betts
2c88e5402c
Add code for uploading, mocked for now.
2021-06-24 18:40:59 +02:00
Edward Betts
b03ae32a9e
Add EditSession table
2021-06-24 18:39:23 +02:00
Edward Betts
c563d440fc
Fix typo in commented out code
2021-06-24 18:39:09 +02:00
Edward Betts
7ca1229380
Switch type from Geography to Geometry
...
Use Geometry type for item location. Improves performance.
2021-06-24 18:37:23 +02:00
Edward Betts
7aaa18cf24
Add Changeset class
2021-06-20 15:01:23 +02:00
Edward Betts
ae7d68462f
Show Wikidata API reply on JSON parse fail
2021-06-20 14:47:04 +02:00
Edward Betts
b4a948e9ef
shopping street (Q21000333) is a type of street
2021-06-16 17:51:47 +02:00
Edward Betts
735e833fc9
Add OSM login
2021-06-16 15:42:25 +02:00
Edward Betts
d407224f35
Add two methods to Item class
2021-06-15 00:08:24 +02:00
Edward Betts
fa3a2880bf
Column property for EWKT
2021-05-14 17:04:01 +02:00
Edward Betts
95366a76dd
Add missing code
2021-05-12 16:00:51 +02:00
Edward Betts
8fea2a8aa7
Add code for downloading Wikidata items
2021-05-08 11:05:00 +02:00
Edward Betts
e3cefcfcbd
Show images in popups
2021-05-08 10:39:06 +02:00