Skip to content
Geohash utitlies in ABAP
ABAP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.abapgit.xml
LICENSE
README.md

README.md

geohash-abap

Geohash utitlies in ABAP

ABAP Version: 740 or higher

Sample

Encoding

data(hash) = zcl_geohash=>encode(
  longitude = '119.9314500000'
  latitude  = '28.4751600000'
  length    = 11
).

Default value of length is 8.

Decoding

zcl_geohash=>decode(
  exporting
    geohash   = 'wtj3cper'
  importing
    longitude = data(longitude)
    latitude  = data(latitude)
).

Neighbors

data(neighbors) = zcl_geohash=>neighbors( 'wtj3cper' ).

Hash Validation

data(valid) = zcl_geohash=>validate( 'wtj3cper' ).

TODO

  • Get neighbors.
  • Unit testing.
  • Hash validation.
  • Class split.
You can’t perform that action at this time.