random-forest / gis-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gis-service

Перед стартом нужно создать папку data с 2 директориями внутри: hgt (для высот) и tiles (туда складываються наши sqtiles)

GET /tiles/{map_style}/{z}/{x}/{y}

map_style -> Имя папки в root_dir/data/tiles z -> зум (1 - 17) int x -> latitude int y -> longitude int

GET /height/{lat}/{lon}

lat -> latitude float64 lon -> longitude float64 Возвращает высоту int

POST /profile

{ "step": 10, "path": [ [[50.557070, 29.520264], [50.619846, 29.918518]], [[50.619846, 29.918518], [50.790311, 29.976196]] ] }

Возвращает

{ "Result":[ [50.55707,29.520264,165], [50.56707,29.53026403,167], [50.57707,29.54026404,147], [50.58707,29.55026406,147], [50.5970699995,29.56026407,149], [50.607069999,29.57026401,158], [50.617069999,29.58026401,160], [50.619846,29.918518,129], [50.629846,29.928518,129], [50.639846,29.93851802,126], [50.649846,29.94851804,142], [50.65984595,29.95851805,138], [50.6698459,29.96851807,137] ... ] }

About

License:GNU General Public License v3.0


Languages

Language:Go 100.0%