Hey everyone! I'm currently developing my senior project using Spring Boot, Thymeleaf, HTML, CSS, and Alpine.js, and I've hit a snag. I need to ask users for their location similar to how various apps do, so I can show all the barbers in their city sorted from closest to furthest. I'm considering using the Google Maps API, but I'm a bit overwhelmed by its features and unsure which ones I need to implement. Should I fetch all barbers across the country and save them in my database, then filter them based on the user's location, given that my app won't be used internationally? I'm eager to tackle this myself without relying on AI tools too much, so if Google Maps is a solid choice, I'd appreciate any step-by-step guides to get me started. Thanks a lot!
1 Answer
Using Google Maps is definitely a good plan! I'd recommend not storing location data separately since it can change constantly, which could complicate things. Instead, try fetching user locations on demand.
Is Mapbox a free alternative? Also, how accurate is it for smaller or less popular countries? I realized Google Maps might have some costs.