Gist 90cdb323657752008da8614e378357d8
✓ Published0🌍 Public
Aalper
Last edited Nov 29, 2024
Created on Nov 29, 2024
This example shows a ranked list of coffee venues, sorted by their distance from the user’s current location. It uses the Dioxus framework with the `use_resource` hook to fetch venue data from the Cuppings JSON API, and the `init_geolocator` and `use_geolocation` functions to retrieve GPS coordinates. Venues are sorted with the `geoutils::Location` haversine distance calculation, while custom serde deserialization extracts formatted addresses from nested Google data.
AI-generated description