본문 바로가기
소프트웨어 & 클라우드

[Chrome] 구글 크롬 위치 정보 수정하기

by TaeGyeong Lee 2024. 12. 30.

개요

개발을 하다 보면, 특정 위치 정보로 개발한 웹 사이트 테스트를 해야할 때가 있습니다. 이 글에서는 임의의 위치 정보를 구글 크롬 브라우저에 추가하여 브라우저가 사용자의 위치를 해당 위치로 인식하도록 설정해 보겠습니다.

 

설정 

크롬 우측 더보기 아이콘 > 도구 더보기 > 개발자 도구 를 클릭합니다. 

개발자 도구 더보기 아이콘 > More tools > Sensors 를 선택하세요. 

Sensors 탭에서 Manage 클릭하세요. 

Add lcoations 을 클릭하면 목록 하단에 위치 정보를 추가할 수 있습니다. 

 

위경도(Lat, Long) : 주소를 알고 있다면 아래 사이트를 이용하여 위경도를 확인하세요.

 

디에이소프트 주소<->좌표 변환 서비스 입니다. - Tel: 010-2995-4593

지도중심기준 행정동 주소정보

deveapp.com

 

 

Timezone ID : 한국은 Asia/Seoul 입니다. 다른 지역 정보가 필요하면 아래 웹사이트를 참고하세요.

 

List of tz database time zones - Wikipedia

From Wikipedia, the free encyclopedia The tz database partitions the world into regions where local clocks all show the same time. This map was made by combining version 2023d with OpenStreetMap data, using open source software.[1] This is a list of time z

en.wikipedia.org

 

Locale : 한국은 ko-KR 입니다. 다른 지역 로케일 코드가 필요하면 아래 웹사이트에서 확인하세요. 

 

Locale codes

Locale codes for all countries in the world. Includes country name, country code, capital, currency, dialing prefix, and more.

simplelocalize.io

 

저는 마포역 유명한 맛집 '마포옥' 으로 테스트해보겠습니다. 

 

추가 후 Senors > location 항목에 '마포옥'이 추가되어 선택할 수 있습니다.

 

이제 개발자 도구 > Application 탭 > Storage > Clear site data 를 클릭하세요. 브라우저를 다시 시작할 필요 없이 해당 위치로 설정됩니다. 

 

이제 개발한 웹 사이트에서 테스트 해보세요. 

 

참고 자료

 

Manage your location settings in Chrome - Computer - Google Chrome Help

To get more useful information from sites, you can allow the sites to use your location. Let a site know your location By default, Chrome asks you when a site wants to use your location. To let the site know where you are, select Allow. Before you allow a

support.google.com

 

Chrome Dev Tools - GeoLocation override not working

I want to override my GeoLocation using Chrome Dev Tools. I changed my GeoLocation to Moscow as shown in the below screenshot, but still my google search results are generated based on my actual lo...

stackoverflow.com