미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
list=geosearch (gs)
- 이 모듈은 read 권한을 요구합니다.
- 이 모듈은 생성기로 사용할 수 있습니다.
- 출처: GeoData
- 라이선스: WTFPL
Returns pages having coordinates that are located in a certain area.
변수:
- gscoord
Coordinate around which to search.
형식: 위도와 경도를 파이프("|")로 구분합니다.
- gspage
Title of page around which to search.
- gsbbox
Bounding box to search in: pipe (|) separated coordinates of top left and bottom right corners.
- gsradius
Search radius in meters.
- Type: integer
- The value must be between 10 and 100,000.
- 기본값: 500
- gsmaxdim
Restrict search to objects no larger than this, in meters.
- Type: integer
- gslimit
Maximum number of pages to return.
- 유형: 정수 또는 max
- The value must be between 1 and 500.
- 기본값: 10
- gsglobe
Globe to search on (by default "earth").
- 다음 값 중 하나: earth 또는 다른 문자열: earth
- 기본값: earth
- gsnamespace
Namespaces to search.
- 값 (|로 구분): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 또는 다른 문자열: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- 모든 값을 지정하려면, *를 사용하십시오.
- 기본값: 0
- gsprop
Which additional coordinate properties to return.
- 값 (|로 구분): country, dim, globe, name, region, type 또는 다른 문자열: country, dim, globe, name, region, type
- 기본값: globe
- gsprimary
Whether to return only primary coordinates ("primary"), secondary ("secondary") or both ("all").
- 다음 값 중 하나: all, primary, secondary 또는 다른 문자열: all, primary, secondary
- 기본값: primary
예시:
- Search around the point with coordinates 37° 47′ 13.1″ N, 122° 23′ 58.84″ W
- api.php?action=query&list=geosearch&gsradius=10000&gscoord=37.786971|-122.399677 [연습장에서 열기]
- Search in a bounding box
- api.php?action=query&list=geosearch&gsbbox=37.8|-122.3|37.7|-122.4 [연습장에서 열기]