Endpoints
/api/v1/geofence/{ReturnType}
- Method:
GET
- URL Params:
- See
ReturnType
enum above
- See
- Returns:
- All geofences saved in the Kōji database in the format specified by
ReturnType
- All geofences saved in the Kōji database in the format specified by
/api/v1/geofence/{ReturnType}/{Project_Name}
- Method:
GET
- URL Params:
- See
ReturnType
enum above - Name of a saved project in the Kōji database
- See
- Returns:
- The geofences saved in the Kōji database in the format specified by
ReturnType
that are related to the specifiedProject_Name
- The geofences saved in the Kōji database in the format specified by
/api/v1/route/{ReturnType}
- Method:
GET
- URL Params:
- See
ReturnType
enum above
- See
- Returns:
- All routes saved in the Kōji database in the format specified by
ReturnType
- All routes saved in the Kōji database in the format specified by
/api/v1/route/{ReturnType}/{Project_Name}
- Method:
GET
- URL Params:
- See
ReturnType
enum above - Name of a saved project in the Kōji database
- See
- Returns:
- The routes saved in the Kōji database in the format specified by
ReturnType
that are related to the specifiedProject_Name
- The routes saved in the Kōji database in the format specified by
Calculation Endpoints
/api/v1/calc/bootstrap
- Method:
POST
- JSON Body:
- Required:
area
ORinstance
- Optional:
radius
return_type
instance
save_to_db
save_to_scanner
benchmark_mode
- Required:
- Returns:
- Bootstrap route data for the specified area/instance with the specified radius
/api/v1/calc/cluster/{category}
/api/v1/calc/route/{category}
- Method:
POST
- URL Params:
- Category:
pokestop
,gym
,spawnpoint
, orfort
- Category:
- JSON Body:
- Required:
area
ORinstance
ORdata_points
- Optional:
radius
return_type
min_points
generations
devices
fast
only_unique
instance
save_to_db
save_to_scanner
benchmark_mode
sort_by
tth
route_split_level
last_seen
- Required:
- Returns:
- Clustered/routing data for the specified area/instance with the specified radius
/api/v1/calc/reroute
- Method:
POST
- JSON Body:
- Required:
data_points
- Optional:
return_type
instance
save_to_db
save_to_scanner
benchmark_mode
route_split_level
- Required:
- Returns:
- Rerouted data for the
data_points
specified
- Rerouted data for the
/api/v1/calc/area
- Method:
POST
- JSON Body:
- Required:
area
- Required:
- Returns:
- Returns the total area of the specified geofence(s)
{ "area": f64 }
- Returns the total area of the specified geofence(s)
Conversions & Helpers
/api/v1/convert/data
- Method:
POST
- JSON Body:
- Required:
area
- Optional:
return_type
- Required:
- Returns:
- Converted data points in any of the supported formats
/api/v1/convert/simplify
- Method:
POST
- JSON Body:
- Required:
area
- Optional:
return_type
- Required:
- Returns:
- Simplify Polygons and MultiPolygons
/api/v1/convert/merge-points
- Method:
POST
- JSON Body:
- Required:
area
- Optional:
return_type
- Required:
- Returns:
- Merges points into a GeoJSON MultiPoint feature
S2 Cells
/api/v1/s2/{cell_level}
- Method:
POST
- JSON Body:
- Required:
BoundsArg
- Required:
- Returns:
- Returns S2 cells found in the provided bounds at the provided level