Skip to content

Conversation

@cedarbaum
Copy link

Allow geolocation to be skipped with an optional parameter. This is useful for cases where lat/lon can optionally be retrieved by other means (e.g., geocoding) and there is no need to get current location:

  const {
    latitude,
    longitude,
    error,
  } = usePosition(watch, settings, otherLat && otherLon);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant