Commit graph

94 commits

Author SHA1 Message Date
Edward Betts 757f9822b7 Type hints and a docstring. 2023-05-20 06:35:48 +00:00
Edward Betts 212a4f4ec3 Remove unused code and add types and a docstring. 2023-05-14 20:21:28 +00:00
Edward Betts 2424fe0fdf Various updates. 2023-05-14 17:25:35 +00:00
Edward Betts ff41bb21d2 Add types and docstrings. 2023-05-14 16:05:19 +00:00
Edward Betts b1625115ad Adjust lxml import. 2023-05-14 16:04:53 +00:00
Edward Betts be2de5dc1a Remove broken error handling code. 2023-05-14 16:04:23 +00:00
Edward Betts 977f83779a Type hint and docstring. 2023-05-14 15:46:38 +00:00
Edward Betts 39b2a3c469 Remove duplicate code. 2023-05-14 14:23:37 +00:00
Edward Betts 6ce8b30fcc Merge branch 'main' of github.com:EdwardBetts/owl-map 2023-05-14 10:30:15 +00:00
Edward Betts 88a0b9f897 Code doesn't work with python 3.9 2023-05-14 11:17:30 +02:00
Edward Betts c607351699 Update 2023-05-13 15:01:28 +02:00
Edward Betts 87005dea18 New API call to get items in a place 2022-04-18 12:24:45 +01:00
Edward Betts 40effe4548 Various improvements 2022-04-08 10:37:43 +01: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