getting location and foursquareApiUrl