title: Swift - How to create local variables to use from the API data in mapViewkit
body: <p>I want to replace the latitude and longitude with the data coming from API, I just don't know how to call them from the MapViewController, all are set up just how to call them from the structure I created and connected with the APICaller.swift</p>
  <p>The Vehicles.swift structure:</p>
  <pre class="lang-swift prettyprint-override"><code>struct Vehicles: Codable {
      var IDVehicle: Int?
      var Title: String?
      var RegistrationDate: String?
      var ExpireDate: String?
      var Department: String?
      var Identification: String?
      var Speed: String?
      var Latitude: Double?
      var Longitude: Double?
      var Angle: Int?
      var Status: Int?
      var InputValue: Int?
      var Plate: String?
      var LastCommunicationDate: String?
      var Passengers: Int?
      var Driver: String?
  }
  </code></pre>
  <p>Now I need to put the Latitude and Longtitude in here &quot;another viewController&quot; :</p>
  <pre class="lang-swift prettyprint-override"><code>let appleHQ = CLLocation(latitude: 37.334722 , longitude: 37.334722)
  let regionRadius: CLLocationDistance = 1000.0
  let region = MKCoordinateRegion(center: appleHQ.coordinate, latitudinalMeters:        regionRadius, longitudinalMeters: regionRadius)
  mapView.setRegion(region, animated: true)
  mapView.delegate = self
  </code></pre>