get_api_query function

Construct a geocoder API query