Skip to main content

fetch_client_location

Function fetch_client_location 

Source
pub async fn fetch_client_location(
    client: &Client,
) -> Result<ClientLocation, Error>
Expand description

Fetch client location from speedtest.net config API.

Returns a crate::types::ClientLocation with coordinates and optional city/country information from the speedtest.net iOS config endpoint.

ยงErrors

Returns Error::Context if the response cannot be parsed or coordinates are missing.