Skip to content

docs: clarify the Geolocation ConsiderIP default - #327

Open
illuminati1911 wants to merge 1 commit into
masterfrom
docs/geolocation-consider-ip-default
Open

illuminati1911 wants to merge 1 commit into
masterfrom
docs/geolocation-consider-ip-default

Conversation

@illuminati1911

@illuminati1911 illuminati1911 commented Dec 3, 2026 •

Copy link
Copy Markdown

Issue

The Go SDK sends considerIp: false when ConsiderIP is unset, disabling IP fallback. The Geolocation API defaults to true only when the field is omitted, so callers may expect fallback when the SDK has disabled it.

Fix

Clarify the difference in GoDoc and show callers how to enable fallback by setting ConsiderIP: true. Request behavior is unchanged.

Verification

go build -mod=readonly -v ./... passed. Checked formatting with gofmt and reviewed the rendered go doc GeolocationRequest output.


Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #326 🦕

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.

Geolocation: document the SDK default for ConsiderIP

1 participant