lib/h3/indexing.rb in h3-3.6.1 vs lib/h3/indexing.rb in h3-3.6.2
- old
+ new
@@ -33,16 +33,10 @@
coords[:lat] = degs_to_rads(lat)
coords[:lon] = degs_to_rads(lon)
Bindings::Private.geo_to_h3(coords, resolution)
end
- # @deprecated Please use {#from_geo_coordinates} instead.
- def geo_to_h3(coords, resolution)
- from_geo_coordinates(coords, resolution)
- end
- deprecate :geo_to_h3, :from_geo_coordinates, 2020, 1
-
# Derive coordinates for a given H3 index.
#
# The coordinates map to the centre of the hexagon at the given index.
#
# @param [Integer] h3_index A valid H3 index.
@@ -56,16 +50,10 @@
coords = GeoCoord.new
Bindings::Private.h3_to_geo(h3_index, coords)
[rads_to_degs(coords[:lat]), rads_to_degs(coords[:lon])]
end
- # @deprecated Please use {#to_geo_coordinates} instead.
- def h3_to_geo(h3_index)
- to_geo_coordinates(h3_index)
- end
- deprecate :h3_to_geo, :to_geo_coordinates, 2020, 1
-
# Derive the geographical boundary as coordinates for a given H3 index.
#
# This will be a set of 6 coordinate pairs matching the vertexes of the
# hexagon represented by the given H3 index.
#
@@ -87,13 +75,7 @@
Bindings::Private.h3_to_geo_boundary(h3_index, geo_boundary)
geo_boundary[:verts].take(geo_boundary[:num_verts]).map do |d|
[rads_to_degs(d[:lat]), rads_to_degs(d[:lon])]
end
end
-
- # @deprecated Please use {#to_boundary} instead.
- def h3_to_geo_boundary(h3_index)
- to_boundary(h3_index)
- end
- deprecate :h3_to_geo_boundary, :to_boundary, 2020, 1
end
end