Skip to content

Releases: sams96/rgeo

v1.2.0

03 Jan 19:33
Compare
Choose a tag to compare

It's been a while since the last release, so all of the dependencies have been updated, but this is mostly about the first user contribution.

Changed

  • Moved to using Go embed for the data files, thanks to @benjojo (#18)
  • Updated to Go 1.19
  • Updated other dependencies

v1.1.1

06 Mar 16:30
6179ef4
Compare
Choose a tag to compare

I broke v1.1.0 when removing the large files from the git history so this will replace it.

Changed

  • Much smaller repo
  • Readme rewrite

v1.1.0

28 Feb 00:56
Compare
Choose a tag to compare

Mostly just bumping the version to see if pkg.go.dev will update now the data files are much smaller.

Changed

  • GeoJSON data is now compressed with gzip in go files, leading to much smaller file sizes without a noticeable performance hit when reading.

v1.0.0

27 Feb 01:20
Compare
Choose a tag to compare

This release is now broken due to some large files being removed from the git history.

Added

  • Province information to Location.
  • New dataset Cities10 and added City field to Location.

Changed

  • Fixed datagen, and moved template back into code.
  • New can now accept multiple datasets (which is only really useful when you
    want to use Cities10 and get province/country information.
  • Switched to Apache License.
  • Better errors.
  • 100% test coverage.

v0.0.5

23 Feb 22:20
Compare
Choose a tag to compare

This release is now broken due to some large files being removed from the git history.

Added

  • JSON strings in Location for more idiomatic marshalling .
  • datagen can now read multiple inputs to one output.
  • 1:10m scale datasets for countries and provinces.
  • Datasets are returned from functions so the compiler doesn't include unused ones in builds.
  • Brought back the New function to initialise the data.

Changes

  • Massive speed increase on queries.
  • Data initialisation is probably slower.

v0.0.4

20 Feb 15:24
23ed94f
Compare
Choose a tag to compare

Changed

  • Minor Documentation changes, making a new release just to get rid of the giant This file is generated in the godoc.

v0.0.3

19 Feb 22:07
680a3fd
Compare
Choose a tag to compare

Added

  • More robust Location printing.

Changed

  • Data is now included as a struct in a go file instead of geojson.
  • Changed the algorithm to remove dependence on s2, so it doesn't need to convert between s2 and geom types. This is a lot faster than converting to s2 types every time, but slower than pre-converted.

Removed

  • Function New() and access to the rgeo data type, the data is already parsed so it doesn't need to be parsed when used.

v0.0.2

17 Feb 17:47
c93c108
Compare
Choose a tag to compare

Added

  • 2 letter country codes, continents, regions and subregions to output.
  • Type Rgeo and function New to parse the JSON and create the polygons ahead of time so it doesn't need to be done every time ReverseGeocode is run.

Changed

  • Moved to using s2 Polygons instead of just s2 Loops.
  • Using github.com/go-test/deep for nicer printing in tests.

Initial Release

15 Feb 22:19
8226c21
Compare
Choose a tag to compare

Added

Initial release

  • Exposes Function ReverseGeocode and type Location.
  • Just give ReverseGeocode a pair of coordinates and it will return a Location containing information about which country those coordinates are in.