Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hhelibeb/geohash-abap
Geohash utitlies in ABAP
https://github.com/hhelibeb/geohash-abap
abap geohash sap utilities
Last synced: 22 days ago
JSON representation
Geohash utitlies in ABAP
- Host: GitHub
- URL: https://github.com/hhelibeb/geohash-abap
- Owner: hhelibeb
- License: apache-2.0
- Created: 2019-08-29T13:48:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T09:07:47.000Z (about 4 years ago)
- Last Synced: 2024-10-11T02:34:55.280Z (about 1 month ago)
- Topics: abap, geohash, sap, utilities
- Language: ABAP
- Size: 49.8 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- abap-florilegium - geohash-abap
README
# geohash-abap
Geohash utitlies in ABAPABAP Version: 740 or higher
## Sample
### Encoding
```abap
data(hash) = zcl_geohash=>encode(
longitude = '119.9314500000'
latitude = '28.4751600000'
length = 11
).
```
Default value of length is 8.### Decoding
```abap
zcl_geohash=>decode(
exporting
geohash = 'wtj3cper'
importing
longitude = data(longitude)
latitude = data(latitude)
).
```
### Neighbors
```abap
data(neighbors) = zcl_geohash=>neighbors( 'wtj3cper' ).
```
### Hash Validation
```abap
data(valid) = zcl_geohash=>validate( 'wtj3cper' ).
```
## TODO
- [x] Get neighbors.
- [x] Unit testing.
- [x] Hash validation.
- [ ] Class split.