Replies: 4 comments 4 replies
-
Hi! Thanks for your interest in contributing to Timeshape, it's much appreciated. Doing a direct lookup from coordinate to country would probably at least double the size of Timeshape JAR, because we'll have to store the country-level geometry in addition to time zone-level geometry. Timeshape JAR is already quite large at 22MB, so I'd be hesitant to increase it further. You can try and do a lookup from time zone to country, but I'm not sure it's possible to do it reliably. Even if it is possible, this feature doesn't have to be a part of Timeshape, as it would simply be a static mapping from All in all, I'm not 100% sure there's a nice way to add this feature to Timeshape. If you could make a more detailed suggestion, I'd have more information to think about. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. Right. Resolving country code using TZ is not reliable. The point about the size is also fair. What if it’s a separate artifact: one with both TZ and Country Code? |
Beta Was this translation helpful? Give feedback.
-
I think a separate artefact would work, but I'd lean towards having it containing just the countries, not both countries and timezones. This would give us more flexibility with releasing the new versions, since we'd have to release the combined artefact as soon as either time zone or country information changes. It will also open an entirely new use case for users who only need to do country lookup. As for users who need both time zones and countries, using both Timeshape and this hypothetical new country-only artefact simultaneously should work just fine. There will be no performance hit, because two point-in-polygon lookups will be needed anyway, one for time zone, one for country. P.S. If I'd be interested in this feature myself, I'd still explore creating the If you look at the list of all known time zones from which Timeshape is built here, you'll notice that there's only 58 zone ids starting with e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi again, sorry for the delay, coming back to this. I saw in the README.md that you're working on GeoBundle. Is there any progress there? We're happy to become a paid customer if there's a clear timeline. Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
We've got a very simple use case; we'd like to resolve country-code and timezone by lat/lon. Theoretically Timezone IDs are tightly coupled with country codes. So I'm hoping Timeshape supports both. Is that right?
If it doesn't support it, is there any chance to support it in future?
We're happy to contribute if the feature gets prioritized.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions