+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getLocationSrv"
keywords = ["grafana","documentation","sdk","@grafana/runtime"]
type = "docs"
draft = true
+++

## getLocationSrv() function

### getLocationSrv() function

<b>Signature</b>

```typescript
export declare function getLocationSrv(): LocationSrv;
```
<b>Import</b>

```typescript
import { getLocationSrv } from '@grafana/runtime';
```
<b>Returns:</b>

`LocationSrv`

