swift – Is it possible to manually give lat/long coordinates to a location puck instead of relying on the device’s geolocalization ? – Mapbox iOS

0
360


I am working on an iOS/Swift project, for which I have to process latitude and longitude coordinates coming from an API. What I need to do is configure the blue puck’s location manually, by passing it the coordinates I receive.

But so far I have only been able to find tutorials and examples showing how to configure the blue location puck through the user device’s geolocation, not with given lat/long coordinates.

Only workaround I’ve found is using annotations, but that’s not really optimized/fluid as much as the blue puck is.

Is there a way to achieve that ?

Thank you for your help/answers, I hope I was clear enough ! 😀