Thanks for taking a look at it!
To be honest, getting a grasp of what it’s like to develop a map really took it out of me! It took me months of research because I was weighing up all the different routes I could have went and understanding all the possibilities.
Towards the end of this project I was truly exhausted from all the work I put into it and there are definitely a few UI changes that need to be made to make the app easier to use. This may come at a later date as I am focusing on other things at the moment.
I’m curious how ChatGPT is geolocating the events.
Basically, I retrieve the events from Wikipedia, format them as a string to only include the event name and year and send them off in batches and stream the response to my PHP backend. All successfully returned coords are formatted and added to the table in the DB for that specific day.
ChatGPT’s API is notoriously slow unless you look at an older model which isn’t as accurate and mixes events up quite a lot.
While streaming the response I could definitely start populating the frontend to keep the user engaged but this opens a different can of worms giving the user the ability to do other things while I’m receiving the response from ChatGPT, potentially interrupting the original request, wasting the money I’ve spent on that request, all this in a hobby project.
The other option which I considered was manually doing each day myself and adding the coords into the DB which would mean I never have to use the API. I preferred the API because it made things a bit more hard which is fun and I could learn more.
Maybe there’s an opportunity to make it faster and more predictable by following the links from Wikipedia articles to Wikidata items to OHM chronology relations to boundary relations. I’ve found Hub handy for avoiding the need to chain multiple API calls together for that kind of crosswalk.
I’m not sure if I follow what you mean by that, although it does sound good?
Very neat! But I also was confused with the exit button for the events.
I just can’t escape this exit button. I should have known before when my girlfriend had issues with that damn exit button!
Edit: here is the function that includes the prompt and the batches being sent off to ChatGPT.