Commit graph

82 commits

Author SHA1 Message Date
Edward Betts c607351699 Update 2023-05-13 15:01:28 +02:00
Edward Betts e3d825c48f Fix user location crash 2021-11-16 12:22:17 +00:00
Edward Betts 84a2cfa5ad Add API method to return osm2pgsql polygon as geojson. 2021-11-13 16:43:30 +00:00
Edward Betts 7c5253b15b Include tags for IsA item page. 2021-11-13 16:42:46 +00:00
Edward Betts e7f8884b7b Add support for changing Wikidata tag on OSM object 2021-10-22 11:32:26 +01:00
Edward Betts e8b1b411e5 Watercouses are also linear features 2021-10-22 11:31:34 +01:00
Edward Betts 2c8ac7259c Look for more variations of street names 2021-10-22 11:30:27 +01:00
Edward Betts badef91b97 No need for user object. Grab item if needed. 2021-10-22 11:27:50 +01:00
Edward Betts bd9323006b Start work on IsA page 2021-10-22 10:02:52 +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 71ac793101 Include duration in api_missing_wikidata_items response 2021-10-06 18:42:44 +02:00
Edward Betts a18528d2f9 Incldue max_distance in api_find_osm_candidates response 2021-10-06 18:42:06 +02:00
Edward Betts c47590dd65 Switch save default from mock to live. 2021-08-05 08:43:15 +02:00
Edward Betts 9b7f6ee878 Add item type filter 2021-07-30 16:02:41 +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 8b7ab45c73 Handle missing item in find nearby OSM API call 2021-07-22 09:49:24 +02:00
Edward Betts 19a9010aa7 Fix for OSM objects with multiple geometry 2021-07-19 22:07:41 +02:00
Edward Betts 6f30e1232a rename function 2021-07-19 22:06:36 +02:00
Edward Betts a87fe9eed2 Bug fix 2021-07-19 22:06:07 +02:00
Edward Betts 22c44aaced Implement uploading to OSM database 2021-07-16 12:00:20 +02:00
Edward Betts 7649afa526 Add a documentation page 2021-07-14 15:57:21 +02:00
Edward Betts 5a42e100c7 Improve OSM search 2021-07-11 17:19:21 +02:00
Edward Betts 7c075227d7 Don't visit index after login or logout 2021-07-11 17:17:29 +02:00
Edward Betts d4eb60fe33 No need to drop geotext from search output 2021-07-11 17:16:54 +02:00
Edward Betts 31431ecdcb Remove old unused code 2021-07-08 15:05:32 +02:00
Edward Betts c4f284031c Improve search API output 2021-07-08 14:35:32 +02:00
Edward Betts 4ebe992919 Bug fix for redirect after logout 2021-07-08 14:34:55 +02:00
Edward Betts f60aa70472 Switch to maxminddb for user location. 2021-07-06 17:24:14 +02:00
Edward Betts 9e5236c387 New API method to get details of single item 2021-07-03 13:40:26 +02:00
Edward Betts 22cfe64896 Include more detail in OSM tags API call 2021-07-03 13:39:37 +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 a91790b66d Move skip_isa into database 2021-06-25 13:00:41 +02:00
Edward Betts 2fc233401e API to show details of user location 2021-06-25 11:12:50 +02:00
Edward Betts 81f8f7d426 Move location of GeoIP data to config file 2021-06-25 11:10:25 +02:00
Edward Betts 8f3f40e569 Simply code for OSM name 2021-06-25 11:08:02 +02:00
Edward Betts eb37e0bf7c New function to return JSON with CORS header 2021-06-25 11:07:38 +02:00
Edward Betts 11afda8d83 Add ISA counts API 2021-06-24 18:42:33 +02:00
Edward Betts 2c88e5402c Add code for uploading, mocked for now. 2021-06-24 18:40:59 +02:00
Edward Betts 801be6d547 Support more preset translations 2021-06-20 14:42:43 +02:00
Edward Betts 37b954739c show more OSM candidate matches 2021-06-20 14:38:33 +02:00
Edward Betts ba548c3513 Tidy code 2021-06-18 19:22:28 +02:00
Edward Betts 57d79b3aa2 Add global user variable 2021-06-17 19:17:28 +02:00
Edward Betts 478a145548 Drop way_area tag from OSM candidates 2021-06-17 19:17:07 +02:00
Edward Betts 53ca5b4ead Show street address for OSM candidates 2021-06-17 19:16:32 +02:00
Edward Betts f0cb54bf95 Auto load Wikidata items 2021-06-17 19:14:42 +02:00
Edward Betts 0c98ca921c Request larger image from Wikimedia Commons 2021-06-17 19:12:50 +02:00
Edward Betts 6cd2bfa6b0 Show username for logged in users 2021-06-17 19:12:07 +02:00
Edward Betts 4689323583 Use en-GB translations for the UK 2021-06-17 19:10:32 +02:00
Edward Betts 735e833fc9 Add OSM login 2021-06-16 15:42:25 +02:00