지리

[프로그램 공유] Geocoding Tool (지오코딩 툴)

Yonghyun Kim 2026. 11. 19. 00:43

요약

주소나 장소명을 위도와 경도로 변환하는 스프레드시트 도구를 소개합니다. 사본 만들기와 함수 입력, 정확한 주소 작성 및 사용 한도에 관한 안내를 담았습니다.

1. 도구 소개

Geocoding Tool(지오코딩 툴)은 지오코딩이 가능한 스프레드시트입니다.

주소를 입력하면 해당 위치의 위도와 경도를 자동으로 표시하는 지오코딩 도구입니다.

지오코딩(geocoding): 주소나 장소명을 위도·경도 좌표로 변환하는 과정

​

예를 들어 다음 주소를 입력하면,

서울특별시 중구 세종대로 110

​

다음과 같은 형태의 좌표가 표시됩니다.

위도: 37.5663

경도: 126.9779

​

이 파일에는 필요한 기능이 이미 포함되어 있으므로 사용자가 별도로 확장 프로그램을 설치하거나 코드를 입력할 필요가 없습니다.

단, 공유받은 원본 파일을 직접 수정하지 말고 반드시 사본을 만든 후 사용해야 합니다.

​

2. 사본 만들기

상단 메뉴에서 다음 순서로 선택합니다.

파일 → 사본 만들기

사본 만들기 창이 나타나면 다음 내용을 설정합니다.

저장 위치: 내 Google Drive에서 저장할 폴더

설정을 마친 뒤 사본 만들기를 누릅니다.

​

3. 기본 시트 구성

지오코딩 작업 시트는 일반적으로 다음과 같이 구성되어 있습니다.

[프로그램 공유] Geocoding Tool (지오코딩 툴) - 이미지 1

​

일반적인 열의 역할은 다음과 같습니다.

  • - 주소 열: 변환할 주소 또는 장소명 입력
  • - 위도 열: 주소에 해당하는 위도 자동 표시
  • - 경도 열: 주소에 해당하는 경도 자동 표시

​

4. 지오코딩 방법

4.1 주소 입력

사본으로 만든 스프레드시트의 'template' 시트를 활용하거나 시트를 새로 추가합니다.

​

주소 열에 변환할 주소를 입력합니다.

  • - 예시:

서울특별시 중구 세종대로 110

충청남도 아산시 탕정면 삼성로 77

부산광역시 연제구 중앙대로 1001

​

주소를 입력한 뒤, 해당 셀의 좌표를 아래의 함수에 넣습니다.

=geocode(주소 셀 좌표)

예시: 주소가 적혀있는 셀이 'B2'일 경우, =geocode(B2)​

[프로그램 공유] Geocoding Tool (지오코딩 툴) - 이미지 2

주소를 입력하면 잠시 후 오른쪽의 위도와 경도 칸에 좌표가 표시됩니다.

​

4.2 입력 후 기다리기

주소를 입력한 직후에는 다음과 같은 상태가 잠시 나타날 수 있습니다.

'로드 중...'

네트워크 상태와 처리량에 따라 좌표가 표시될 때까지 시간이 조금 걸릴 수 있습니다.

주소를 반복해서 수정하거나 같은 내용을 여러 번 붙여 넣지 말고 결과가 나타날 때까지 잠시 확인합니다.

​

4.3 한 행씩 입력하기

처음 사용할 때는 주소를 여러 개 한꺼번에 넣기보다 1개 주소로 정상 작동하는지 확인하는 것이 좋습니다.

  • - 예시:
[프로그램 공유] Geocoding Tool (지오코딩 툴) - 이미지 3

첫 번째 주소가 정상적으로 변환되면 나머지 주소를 추가합니다.

​

5. 정확한 주소 입력 방법

5.1 권장 형식

지오코딩의 정확도는 입력한 주소가 얼마나 구체적인지에 따라 달라집니다.

다음 정보를 가능한 한 모두 입력합니다.

시·도 + 시·군·구 + 읍·면·동 + 도로명 + 건물번호

  • - 예시:

서울특별시 중구 세종대로 110

충청남도 공주시 공주여고길 14-1

​

5.2 정확도가 낮을 수 있는 주소

다음과 같이 지역 정보가 부족한 주소는 잘못된 위치가 검색될 수 있습니다.

같은 도로명이나 장소명이 여러 지역에 존재할 수 있기 때문입니다.

예시: 중앙로 10, 삼성로 77, 중앙공원, 시청 등

​

5.3 장소명으로 검색하기

정확한 도로명주소를 모르는 경우 시설명이나 장소명을 입력할 수도 있습니다.

  • - 예시: 서울특별시청, 경복궁, 공주여자고등학교, 부산역

​

단, 같은 이름의 장소가 여러 곳에 있거나 Google 지도에 등록된 명칭이 다른 경우 잘못된 위치가 선택될 수 있습니다.

장소명 뒤에 지역명을 함께 적는 것이 좋습니다.

  • - 예시:

중앙공원, 대전광역시

부산역, 부산광역시 동구

​

6. 좌표 읽는 방법

좌표는 일반적으로 위도, 경도 순서로 표시됩니다.

  • - 예시:

37.5663, 126.9779

37.5663: 위도

126.9779: 경도

​

한국의 좌표는 대체로 다음 범위 안에 있습니다.

위도: 약 33~39

경도: 약 124~132

​

7. 사용 횟수 제한

이 도구는 별도의 유료 API 키를 입력하지 않아도 사용할 수 있지만 Google Apps Script의 지오코딩 사용 한도가 적용됩니다.

현재 공개된 일일 한도는 다음과 같습니다.

[프로그램 공유] Geocoding Tool (지오코딩 툴) - 이미지 4

​

한도는 사용자별로 적용되며 첫 요청 후 24시간을 기준으로 초기화됩니다.

Google은 할당량을 변경할 수 있으므로 대규모 작업에서는 현재 공식 기준을 다시 확인해야 합니다.

주소 1개를 변환할 때 일반적으로 지오코딩 요청 1회가 사용됩니다.

[프로그램 공유] Geocoding Tool (지오코딩 툴) - 이미지 5

​

주소를 수정하거나 수식이 다시 계산되면 동일한 주소가 다시 요청될 수 있으므로 실제 호출 횟수는 주소 개수보다 많아질 수 있습니다.

​

8. 권장 처리량

많은 주소를 한꺼번에 입력하면 일부 결과가 늦게 표시되거나 오류가 발생할 수 있습니다.

안정적인 처리를 위해 다음과 같이 나누어 입력하는 것을 권장합니다.

1차: 1~100개

2차: 101~200개

3차: 201~300개

​

주소 1~10개 정도로 먼저 테스트한 뒤 정상적으로 작동하면 처리량을 늘리는 것이 좋습니다.

사용자 정의 함수는 1회 실행당 최대 30초의 실행 제한이 적용됩니다.

짧은 시간에 지나치게 많은 요청이 발생하면 실행 오류가 나타날 수도 있습니다.

​

9. 오류 발생 시 해결 방법

9.1 배열 결과를 펼칠 수 없음

  • - 원인

좌표가 표시되어야 하는 셀에 기존 값이 들어 있는 경우입니다.

  • - 해결 방법

위도와 경도 결과가 표시되는 칸을 비웁니다.

기존 메모나 숫자를 삭제합니다.

수식이 입력된 셀 옆에 다른 데이터가 있는지 확인합니다.

​

9.2 일일 사용 한도 초과

다음과 같은 오류가 표시될 수 있습니다.

Service invoked too many times for one day: geocode

이 오류는 해당 Google 계정의 하루 지오코딩 한도를 초과했다는 의미입니다.

할당량은 파일 전체가 아니라 일반적으로 실행하는 사용자 계정을 기준으로 적용됩니다.

​

9.3 짧은 시간에 너무 많은 요청을 보낸 경우

다음과 비슷한 오류가 표시될 수 있습니다.

Service invoked too many times in a short time

  • - 해결 방법:

주소를 50~100개 단위로 나누기

여러 주소를 동시에 반복 수정하지 않기

잠시 뒤 다시 확인하기

여러 시트에서 동시에 지오코딩하지 않기

​


* e-GIS에서 이 시트를 사용할 경우, 'INFO' 시트를 지운 뒤 사용하시기 바랍니다.


[Program Sharing] Geocoding Tool

Summary
This post introduces a spreadsheet tool that converts addresses or place names into latitude and longitude. It includes guidance on making a copy, entering functions, writing accurate addresses, and usage limits.

1. Introducing the Tool

Geocoding Tool is a spreadsheet with geocoding capabilities.

It is a geocoding tool that automatically displays the latitude and longitude of a location when you enter its address.

Geocoding: the process of converting an address or place name into latitude and longitude coordinates

For example, if you enter the following address,

110 Sejong-daero, Jung-gu, Seoul

coordinates are displayed in the following form.

Latitude: 37.5663

Longitude: 126.9779

The necessary features are already included in this file, so users do not need to install any additional extensions or enter any code.

However, you must make a copy before using it, rather than editing the original shared file directly.

2. Making a Copy

Select the following items in order from the top menu.

File → Make a copy

When the Make a copy window appears, configure the following.

Save location: the folder in your Google Drive where you want to save the file

Once you have finished configuring the settings, click Make a copy.

3. Basic Sheet Structure

A geocoding worksheet is generally structured as follows.

Image 1 (in the Korean section above).

The columns typically have the following roles.

- Address column: Enter the address or place name to convert

- Latitude column: Automatically displays the latitude corresponding to the address

- Longitude column: Automatically displays the longitude corresponding to the address

4. How to Geocode

4.1 Entering Addresses

Use the “template” sheet in your copied spreadsheet, or add a new sheet.

Enter the address to convert in the address column.

- Examples:

110 Sejong-daero, Jung-gu, Seoul

77 Samsung-ro, Tangjeong-myeon, Asan-si, Chungcheongnam-do

1001 Jungang-daero, Yeonje-gu, Busan

After entering the address, insert that cell’s reference into the function below.

=geocode(주소 셀 좌표)

Example: If the cell containing the address is 'B2', =geocode(B2)

Image 2 (in the Korean section above).

After you enter an address, its coordinates will appear shortly in the latitude and longitude cells to the right.

4.2 Waiting After Entry

Immediately after you enter an address, the following status may briefly appear.

“Loading...”

Depending on the network conditions and processing load, it may take a little time for the coordinates to appear.

Rather than repeatedly editing the address or pasting the same content multiple times, wait briefly and check for the result.

4.3 Entering One Row at a Time

When using it for the first time, it is best to check that it works correctly with 1 address rather than entering several addresses at once.

- Example:

Image 3 (in the Korean section above).

Once the first address has been converted successfully, add the remaining addresses.

5. How to Enter Accurate Addresses

5.1 Recommended Format

Geocoding accuracy depends on how specific the address you enter is.

Include as much of the following information as possible.

City/Province + City/County/District + Eup/Myeon/Dong + Road Name + Building Number

- Examples:

110 Sejong-daero, Jung-gu, Seoul

14-1 Gongjuyeogo-gil, Gongju-si, Chungcheongnam-do

5.2 Addresses That May Be Less Accurate

Addresses with insufficient regional information, such as those below, may return an incorrect location.

This is because the same road name or place name can exist in multiple regions.

Examples: 10 Jungang-ro, 77 Samsung-ro, Jungang Park, City Hall, etc.

5.3 Searching by Place Name

If you do not know the exact road-name address, you can also enter the name of a facility or place.

- Examples: Seoul City Hall, Gyeongbokgung Palace, Gongju Girls’ High School, Busan Station

However, an incorrect location may be selected if several places share the same name or if the name registered in Google Maps is different.

It is best to add the region’s name after the place name.

- Examples:

Jungang Park, Daejeon

Busan Station, Dong-gu, Busan

6. How to Read Coordinates

Coordinates are generally displayed in latitude, longitude order.

- Example:

37.5663, 126.9779

37.5663: Latitude

126.9779: Longitude

Coordinates in Korea generally fall within the following ranges.

Latitude: approximately 33~39

Longitude: approximately 124~132

7. Usage Limits

You can use this tool without entering a separate paid API key, but Google Apps Script’s geocoding quotas apply.

The currently published daily limits are as follows.

Image 4 (in the Korean section above).

Limits apply per user and reset on a 24-hour basis after the first request.

Because Google may change its quotas, you should check the current official limits again before carrying out large-scale tasks.

Converting 1 address generally uses 1 geocoding request.

Image 5 (in the Korean section above).

If you edit an address or a formula recalculates, the same address may be requested again, so the actual number of calls can exceed the number of addresses.

8. Recommended Batch Sizes

If you enter many addresses at once, some results may be delayed or errors may occur.

For reliable processing, I recommend splitting your entries into batches as follows.

Batch 1: 1~100

Batch 2: 101~200

Batch 3: 201~300

It is best to test with about 1~10 addresses first and increase the batch size once you confirm that it works correctly.

Custom functions are subject to a maximum execution time of 30 seconds per run.

Execution errors may also occur if too many requests are made in a short period.

9. Troubleshooting Errors

9.1 Array Result Cannot Be Expanded

- Cause

This happens when the cells where the coordinates should appear already contain values.

- Solution

Clear the cells where the latitude and longitude results appear.

Delete any existing notes or numbers.

Check whether there is other data next to the cell containing the formula.

9.2 Daily Usage Limit Exceeded

The following error may appear.

Service invoked too many times for one day: geocode

This error means that the daily geocoding quota for that Google account has been exceeded.

Quotas generally apply to the user account running the function, rather than to the entire file.

9.3 Too Many Requests Sent in a Short Period

An error similar to the following may appear.

Service invoked too many times in a short time

- Solutions:

Split addresses into batches of 50~100

Avoid repeatedly editing multiple addresses at the same time

Check again after a short wait

Do not run geocoding in multiple sheets simultaneously

https://docs.google.com/spreadsheets/d/1nW24wsVc_6RKL-rBxlUb5iS24MebZaQtAj4qYdlPmgw/edit?usp=sharing

* If you use this sheet in e-GIS, delete the 'INFO' sheet before using it.


이 글은 2026년 7월 13일 네이버 블로그에 처음 게시한 글을 옮긴 것입니다.
원문: https://blog.naver.com/rainshadow21/224345056015