[geolocation] Fixes for Bugs 1022630, 1027489, and 1022637

Odd way of formatting a dict.