Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How did you measure the driving distance?


I asked chatgpt4, and it did some insane formula that uses lat/long and the radius of the earth to measure distances, then asked it to add a bonus 20 minutes for any destination in SF, 15 minutes for any event in Berkeley/Oakland (and it correctly put bounding rectangles on the three jurisdictions).


Cool, thank you for the insight.

I stumpled upon a similar quest where my app had to calculate the walking distance between two coordinates (the client and the restaurant).

OSM seem to be the only good option, I could not find any better alternative in my case (Ruby).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: