Endpoints
/api/v1/geofence/{ReturnType}
- Method:
GET - URL Params:
- See
ReturnTypeenum 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
ReturnTypeenum 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
ReturnTypethat 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
ReturnTypeenum 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
ReturnTypeenum 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
ReturnTypethat 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:
areaORinstance
- Optional:
radiusreturn_typeinstancesave_to_dbsave_to_scannerbenchmark_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:
areaORinstanceORdata_points
- Optional:
radiusreturn_typemin_pointsgenerationsdevicesfastinstancesave_to_dbsave_to_scannerbenchmark_modesort_bytthroute_split_levellast_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_typeinstancesave_to_dbsave_to_scannerbenchmark_moderoute_split_level
- Required:
- Returns:
- Rerouted data for the
data_pointsspecified
- 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