factor out get_lat_long method calls