Better Ratings & Fixed Search

I've been working on improving the rating system and fixing a search issue that was doing my head in. The old rating system was fine, but it was pretty basic - just an overall star rating. That's not really enough when you're trying to work out if somewhere is actually decent.

Now you can rate toilets on four different things; overall quality, cleanliness, accessibility, and whether it has baby changing facilities. Makes much more sense. You might find somewhere that's really clean but not very accessible, or vice versa. Now you can actually tell people what it's like in each area.

There's also a proper review section now where you can write comments. Limited to 500 characters so people don't write novels, but it's enough to give some useful detail. You know, "great spot, always clean" or "watch out for the broken lock on the third cubicle" - that sort of thing. The more information people have before they visit, the better.

The modal that pops up when you want to leave a rating is much better now too. Before it was a bit basic, but now it's actually designed properly with proper star ratings for each category and a character counter so you know how much you've written. Small things, but they make a difference when you're actually using it.

I've also fixed the search function that was broken. Turns out it was a CORS issue - the browser couldn't directly access the geocoding service I was using. I've sorted that out by routing it through the server instead, so search actually works now. You can search for any location and it'll find it properly.

There were a few JavaScript errors that were causing issues too - nothing that stopped it working, but annoying console messages that were cluttering things up. All cleaned up now. The whole rating system should feel much smoother and more reliable.

Give it a try next time you visit somewhere. Being able to rate different aspects separately should make the reviews much more useful. And if you spot any issues or have suggestions for what else could be better, let me know.