Commit graph

51 commits

Author SHA1 Message Date
Edward Betts 8fa13f7335 Show error page
Closes: #10
2023-11-25 14:27:47 +00:00
Edward Betts 06f2d7f804 Report lat/lon out of bound errors
Closes: #9
2023-11-25 13:59:24 +00:00
Edward Betts 65d1fbf6fa Update query error template to extend base.html 2023-11-25 13:58:39 +00:00
Edward Betts b785bdb495 Add link from detail page to home 2023-11-25 13:58:13 +00:00
Edward Betts cfa0bab9fc Don't lookup FQDN if no remote IP 2023-11-25 12:51:45 +00:00
Edward Betts b6825564c7 Send error mail to admin
Closes: #8
2023-11-25 11:41:53 +00:00
Edward Betts 231cab309d Log FQDN 2023-11-24 15:35:54 +00:00
Edward Betts 4720814e1f Log usage
Closes: #6
2023-11-24 15:13:00 +00:00
Edward Betts 6dd4ac1115 Add requirements.txt 2023-11-17 13:50:21 -03:00
Edward Betts 62dad7640a Add top-level docstring to lookup.py 2023-11-17 12:23:03 -03:00
Edward Betts d425133423 Catch database connection error and show error page
Closes: #5
2023-11-17 12:21:07 -03:00
Edward Betts 3b81bc0d96 Correct spelling mistakes 2023-11-17 11:56:21 -03:00
Edward Betts 3bad50cb27 Check topic's main category (P910)
Closes: #3
2023-11-04 21:50:48 +00:00
Edward Betts 690d3281df Make random page show polygon on map 2023-11-04 21:36:05 +00:00
Edward Betts ea2f172388 Fixed type hints 2023-11-04 21:35:33 +00:00
Edward Betts cde9d09eb0 More samples 2023-11-04 21:23:15 +00:00
Edward Betts b700f88da6 boundary=place is valid
Example: 51.4564, -0.6486 -> Windsor (Q464955)
2023-11-04 21:22:09 +00:00
Edward Betts 5dbb50ed34 Bristol example returns Hotwells, Bristol
Closes: #2
2023-11-04 20:50:13 +00:00
Edward Betts 50c222d66a Split up code into functions to ease comprehension 2023-11-04 20:49:36 +00:00
Edward Betts a6286cb05f Show map on details page
Includes pin and polygon

Closes: #4
2023-11-03 10:32:18 +00:00
Edward Betts d24744bc29 Various improvements 2023-10-13 19:11:02 +01:00
Edward Betts 474d9c6a66 Name match on aliases 2023-10-13 16:49:18 +01:00
Edward Betts 2519ea74b8 Match on boundary=political 2023-10-13 16:48:56 +01:00
Edward Betts 41a34856b8 Exclude some more item types from geosearch 2023-10-12 22:16:30 +01:00
Edward Betts e975e86af5 Add types and docstrings. 2023-10-12 20:34:42 +01:00
Edward Betts 5c01d9aebf Format code with black 2023-10-10 10:08:59 +01:00
Edward Betts 6e9b2eb50e Add README.md and LICENSE 2023-10-10 10:08:15 +01:00
Edward Betts 4375b80d45 Add .gitignore 2023-10-10 09:09:01 +01:00
Edward Betts ab81201908 Remove unused pprint import 2023-10-10 09:08:31 +01:00
Edward Betts faa0b3cb4e Bug fixes and improvements. 2023-10-10 07:27:25 +00:00
Edward Betts 89549b750f Add missing template 2022-05-18 14:13:29 +01:00
Edward Betts 5fde13608f Tidy 2022-05-18 14:12:50 +01:00
Edward Betts a5f7ba917d Bug fixes 2022-05-18 14:12:34 +01:00
Edward Betts 529611b42c Update model 2022-05-18 14:11:51 +01:00
Edward Betts c5a66abb25 Move code around 2021-04-17 19:29:09 +02:00
Edward Betts 44241751b2 Query database instead of overpass 2021-04-17 18:31:58 +02:00
Edward Betts 54b280655f Moving code around 2021-04-17 18:02:53 +02:00
Edward Betts fbcf3d102b bug fixes 2021-04-16 22:35:11 +02:00
Edward Betts 59611dd077 reorder functions and rename template 2021-04-16 22:30:25 +02:00
Edward Betts dc24e3f7e7 split out more code 2021-04-16 22:24:59 +02:00
Edward Betts cec535ee7e Split up some code 2021-04-16 20:24:23 +01:00
Edward Betts 529c31fce6 Apply black code formatter 2021-04-16 16:22:39 +01:00
Edward Betts 5c501b80f0 Tidy the code 2021-04-16 16:21:38 +01:00
Edward Betts b8e217d9e4 two newlines between functions 2021-04-16 16:14:32 +01:00
Edward Betts 365d81a1f0 New function to generate random coords 2021-04-16 16:14:12 +01:00
Edward Betts 0df666742e Bug fixes 2021-04-15 12:28:02 +01:00
Edward Betts c3094355d7 More detail 2021-04-15 12:27:28 +01:00
Edward Betts 656b0bbbc1 Add brief documentation 2021-04-15 12:26:49 +01:00
Edward Betts a74b335782 More examples 2021-04-15 12:26:17 +01:00
Edward Betts 1cbecf5fe8 Set user-agent 2021-04-15 12:25:14 +01:00