from ...config import Configuration
from ...core import NominatimAPIAsync
from ... import v1 as api_impl
+from ...result_formatting import FormatDispatcher
+from ...v1.format import dispatch as formatting
from ..asgi_adaptor import ASGIAdaptor, EndpointFunc
from ... import logging as loglib
return cast(Configuration, self.request.app.state.API.config)
+ def formatting(self) -> FormatDispatcher:
+ return formatting
+
+
def _wrap_endpoint(func: EndpointFunc)\
-> Callable[[Request], Coroutine[Any, Any, Response]]:
async def _callback(request: Request) -> Response: