ugjka / go-tz Goto Github PK
View Code? Open in Web Editor NEWtimezone lookup in go
License: MIT License
timezone lookup in go
License: MIT License
[ugjka@ugjka tmp]$ sgpt "how are holes defined in geojson"
In GeoJSON, holes within polygons are defined using an array of linear rings. The first linear ring in the
array represents the outer boundary of the polygon, and any subsequent linear rings represent holes within the
polygon. Each linear ring is a closed line string that is defined by four or more positions, with the first and
last positions being equivalent.
Here's an example of a GeoJSON polygon with a hole:
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[ // Outer boundary
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
],
[ // Hole
[100.2, 0.2],
[100.8, 0.2],
[100.8, 0.8],
[100.2, 0.8],
[100.2, 0.2]
]
]
},
"properties": {
"name": "A polygon with a hole"
}
}
In this example, the first array of coordinates defines the outer boundary of the polygon, and the second array
defines a hole within that polygon.
Hello!
We are using the latest version github.com/ugjka/go-tz/v2 v2.2.2. Since March 1, 2024, Kazakhstan will switch to a single time zone (Asia/Almaty + Asia/Qostanay => UTC+05:00) Wikipedia Time in Kazakhstan.
Asia/Almaty:
lat = 43.2363924,
long = 76.9457275
timezone, err := tz.GetZone(tz.Point{Lon: long, Lat: lat}); // => '2024-01-01T00:00:00+06:00' (โ )
timezone, err := tz.GetZone(tz.Point{Lon: long, Lat: lat}); // => '2024-05-05T00:00:00+06:00' (โ)
Do you have an update time zone database plan later?
Thank you.
Hey! Thanks for the library! I'm not sure why, but I'm not getting any output from your example: https://play.golang.org/p/y8zs89hhzfs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.