Skip to main content
100%

Gist 4417ed600fc17af2ed846c4094098a9b

✓ Published0🌍 Public
Aandrewxhill
Last edited Apr 6, 2017
Created on Apr 6, 2017

This example shows a mobile ride-finding interface that uses the user’s current GPS location to suggest nearby destinations. The code relies on Core Location’s `CLLocationManager` to fetch the user’s coordinates, then passes them to the SetSDK’s `getDestination(fromLocation:)` method, which returns a list of `SetState` objects. Those states are then used to populate destination suggestions in the UI via a custom `populateDestinationSuggestionsFromSetStates` function. The visualization is driven entirely by location data and the SetSDK’s geospatial logic, with no charting or rendering library involved.

AI-generated description

Similar vizzes