# 거리

**거리 블록은 언제 사용하나요?**

* 기준 주소와 목적지 주소의 거리를 표기할 때 사용해요. 숫자 뒤에 해당하는 단위까지 포함하여 표기돼요.
* 값이 1,000 초과이면 km 단위로, 1,000 이하이면 m 단위로 숫자를 표기해줘요.

**거리 블록의 특징은 무엇인가요?**

* 거리 블록을 사용하기 위해서는 먼저 [항목 설정](/main/class/puppy-app/2.md)이 필요해요.
* 관리자 웹 ➡︎ 운영 모드 ➡︎ 좌측 메뉴바에서 원하는 메뉴 선택 ➡︎ 설정 ➡︎ 항목 추가 ➡︎ 텍스트 타입 ➡︎ '주소' 항목을 추가하고 항목명은 기준 주소로 입력해 주세요.
* 관리자 웹 ➡︎ 운영 모드 ➡︎ 좌측 메뉴바에서 원하는 메뉴 선택 ➡︎ 설정 ➡︎ 항목 추가 ➡︎ 텍스트 타입 ➡︎ '주소' 항목을 추가하고 항목명은 목적지 주소로 입력해 주세요.
* 관리자 웹 ➡︎ 앱 설정 ➡︎ 좌측 메뉴바에서 원하는 메뉴 선택 ➡︎ 거리 블록 추가 ➡︎ 항목 ID에 기준 주소의 항목 ID를 입력해 주세요.
* 앱 설정 ➡︎ 거리 블록 ➡︎ x 좌표에는 '목적지 주소 항목 ID.x'를 입력하고, y 좌표에는 '목적지 주소 항목 ID.y'를 입력해 주세요.
* 기준 주소와 목적지 주소 항목에 데이터를 등록하면 앱 화면에 두 주소의 거리가 나타나요.

<div align="left"><figure><img src="/files/HxAWcCqkqGNI0XVvi7TR" alt=""><figcaption></figcaption></figure></div>

> \#거리, #km, #m, #거리 표기, #거리 단위

2024.02.28 Jinny<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ohmyapp.io/main/guide/develop_app/4/block/location/distance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
