diff --git a/src/c3nav/routing/api.py b/src/c3nav/routing/api.py index ecb2fec8..0e6c1e67 100644 --- a/src/c3nav/routing/api.py +++ b/src/c3nav/routing/api.py @@ -23,6 +23,20 @@ class RoutingViewSet(ViewSet): /route/ Get routes. /options/ Get or set route options. /locate/ Wifi locate. + + How to use the /locate/ endpoint: + POST visible wifi stations as JSON data like this: + { + "stations": [ + { + "bssid": "11:22:33:44:55:66", + "ssid": "36C3", + "level": -55, + "frequency": 5500 + }, + ... + ] + } """ @action(detail=False, methods=['get', 'post']) def route(self, request, *args, **kwargs):