Skip to content

hhelibeb/geohash-abap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages