pseudocode for gathering query parameters, converting, validating, and getting json using Google's Places API