Skip to content

Release v4.2.4#53

Merged
sampoyigi merged 3 commits into
masterfrom
4.x
May 15, 2026
Merged

Release v4.2.4#53
sampoyigi merged 3 commits into
masterfrom
4.x

Conversation

@sampoyigi
Copy link
Copy Markdown
Member

This release includes improvements to Google Places session billing and language update filtering.

Added

  • Language updates are now filtered to only apply when the version is a valid semantic version

Fixed

  • Session token is now passed to Place Details requests to enable correct Google session billing

sampoyigi and others added 3 commits May 15, 2026 10:18
)

* Pass sessionToken to Place Details to enable Google session billing

Google's Places API (New) bundles Autocomplete + Place Details into a
single billable session only when the same sessionToken is presented on
both calls. The Autocomplete request already sent the token, but
getPlaceCoordinates() omitted it, so every Autocomplete keystroke was
billed as a standalone request instead of as part of a free session
companion to the Details call.

Per the places.get REST reference, sessionToken is an optional query
string parameter on GET /v1/places/{PLACE_ID}. Appending it here lets
Google link the calls and apply session pricing.

Also bumps the local session-token expiry from 3 to 5 minutes to align
with Google's recommended session window, reducing premature token
rotation while a user is still typing.

* fix(geolite): cast place fields to string in Google and Nominatim

---------

Co-authored-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
@sampoyigi sampoyigi merged commit cec1e50 into master May 15, 2026
1 check passed
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.

2 participants