# useRoutingProvider

The routing provider, or `undefined` when the host supplies none. The
Directions tool needs it, so a host without one gets no such tool. Nothing
is requested until a user action asks for a route or area.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useRoutingProvider } from "@mapcairn/map";
 
function useRoutingProvider(): RoutingProvider | undefined;
```

## Returns

`RoutingProvider | undefined`

## See also

- [`RoutingProvider`](https://docs.mapcairn.com/api/core/RoutingProvider.md)

Source: [packages/map/src/services/hooks.ts:70](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L70)
