Geohash utitlies in ABAP
ABAP Version: 740 or higher
data(hash) = zcl_geohash=>encode(
longitude = '119.9314500000'
latitude = '28.4751600000'
length = 11
).
Default value of length is 8.
zcl_geohash=>decode(
exporting
geohash = 'wtj3cper'
importing
longitude = data(longitude)
latitude = data(latitude)
).
data(neighbors) = zcl_geohash=>neighbors( 'wtj3cper' ).
data(valid) = zcl_geohash=>validate( 'wtj3cper' ).
- Get neighbors.
- Unit testing.
- Hash validation.
- Class split.