title: Append more data to an api defined in a common class
body: <p>I'm calling a webservice like so...</p>
  
  <p><code>WebServiceClient.shared.getNearbyLocationsList(with.....</code></p>
  
  <p>This in turn calls another class like so..</p>
  
  <pre><code>func getNearbyLocationsList(withParameters parameters: APIParameters, completionHandler: @escaping (Bool, [String: Any]?) -&gt; Void) {
      guard let url = APIClient.shared.createWebServiceUrl(forPath: WebServicePath.googleLocationsApi, withParameters: .....
  </code></pre>
  
  <p>And here, this part <code>WebServicePath.googleLocationsApi..</code> calls this variable in another class...</p>
  
  <pre><code>static let googleLocationsApi = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"
  let googleKey = "YOUR GOOGLE KEY"
  </code></pre>
  
  <p>So this will be the api url called. But my actual location url looks something like this...</p>
  
  <pre><code>https://maps.googleapis.com/maps/api/place/nearbysearch/json?sensor=true&amp;location=10.123456,78.910111&amp;radius=1000&amp;key=googleKey
  </code></pre>
  
  <p>So this entire portion has to be appended with the url given above at <code>static let googleLocationsApi =....</code>:</p>
  
  <pre><code>?sensor=true&amp;location=10.123456,78.910111&amp;radius=1000&amp;key=Aqporjp9asdjhg425jhgjhgvbjhAJGFKJfkjgkj4kjakjfb
  </code></pre>
  
  <p>Here, location, radius and key is defined somewhere else. So how can I have an api structure that will take these values and thus have the final api..?</p>