I'm trying to cache lat/lon address pairs from Google Maps, so I need a data structure where the key is two ints (lat and lon). What's the simplest data structure for that?
I thought of two ways so far:
Nested hash:
{37.734608 {-121.913019 "San Ramon, CA" -121.6 "Tracy, CA"}}
Concat the two to make the key:
{"37.734608,-121.913019" "San Ramon, CA" "37.734608,-121.6" "Tracy, CA"}}
Am I missing any other solutions, and which would you recommend?