So, I am speaking at That Conference. I will be giving the talk “Locating your user in meatspace” on Tuesday, July 26, 2022 at 1:00 PM CDT. Swing by and I’ll show you what I have learned about geolocation and how to add it to your web application. You can pick up a $99 “ON THAT Camper” ticket at: https://that.us/events/wi/2022/tickets/.
What am I going to cover?
- How to find your user’s location using what their device returns and using their IP Address (and how to make IP-based geolocation suck less)
- How to use the United States census bureau‘s U.S. Gazetteer Files to build a web service to convert from a zip code to latitude/longitude coordinates and from a city and state to latitude/longitude coordinates.
- Finally, I intend to show how to use the haversine formula to determine the distance between where the user is and possible points of interest.
In the process, I am also going to show how to use Cloudflare workers to minimize the amount of this logic that you have on the client side. Hopefully you find this mildly interesting.
I’ll see you in July!