Whenever I worked with lat/lon pairs in the past I stumbled over those issues at some point. That's why at my last startup we used Geohashes everywhere. It's one string and so much more convenient to handle. There are libraries to convert from Geohashes to lat/lon pairs for every platform for those times you need them. You can even shorten them when accuracy isn't needed or you'd like to group similar locations.