GeoDB Cities

FREEMIUM
Verified
By Michael Mogley | Updated hace 4 días | Data
Popularity

9.9 / 10

Latency

88ms

Service Level

100%

Health Check

100%

Back to All Discussions

Support for getting time-zone by id?

Rapid account: Phodgson
phodgson
hace 2 años

There’s currently support for getting all time-zones, but doesn’t appear to be a way to get a specific time-zone in a single call.

This makes it cumbersome (and slow) to get from city details (which has the time-zone id), to the details of the time-zone, since you have to (potentially) retrieve all time-zones via multiple calls to the existing api, then index into the resulting set of time-zone data.

Proposal: Support “get time-zone”

Path:
GET /locale/timezones/{zoneId}
Responses:
200: TimeZoneDescriptorResponse

TimeZoneDescriptorResponse: object
Properties
data: TimeZoneDescriptor

Rapid account: Wirefreethought
wirefreethought Commented hace 2 años

This is now available. Example:

GET /v1/locale/timezones/America__Los_Angeles

Rapid account: Wirefreethought U Ea 5 G Nyw U
wirefreethought-UEa5GNywU Commented hace 2 años

Hi. The original thought was that since timezones basically don’t change and are relatively few in number, a user could retrieve them wholesale every so often, refreshing a local cache. However, this was clearly important enough an issue for you to make a detailed post about it, so I will add the additional endpoint in the coming weeks. Am about to start a big road trip so unfortunately can’t make any timeline promises. But stay tuned here.

Join in the discussion - add comment below:

Login / Signup to post new comments