رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=geosearch (gs)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو جنریٹر کے طور پر استعمال کیا جا سکتا ہے۔
- ماخذ: GeoData
- اجازت نامہ: WTFPL
Returns pages having coordinates that are located in a certain area.
- gscoord
Coordinate around which to search.
Format: Latitude and longitude separated by pipe (|).
- 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 10,000.
- طے شدہ: 500
- gsmaxdim
Restrict search to objects no larger than this, in meters.
- Type: integer
- gssort
Set the sort order of returned results.
- distance
- Rank pages by their distance to the center.
- relevance
- Rank pages by their relevance according to CirrusSearch, similar to how Special:Search does it. Currently only supported on wikis that use the ElasticSearch backend, see mw:Extension:GeoData#Search backends.
- ذیل کی قدروں میں سے کوئی ایک: distance، relevance
- طے شدہ: distance
- gslimit
Maximum number of pages to return.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 10
- gsglobe
Globe to search on. See mw:Special:MyLanguage/Extension:GeoData#Glossary for details.
- ذیل کی قدروں میں سے کوئی ایک: earth
- طے شدہ: earth
- gsnamespace
Namespaces to search.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل): 0، 1، 2، 3، 4، 5، 6، 7، 8، 9، 10، 11، 12، 13، 14، 15، 100، 101، 102، 103، 118، 119، 710، 711، 828، 829، 2600
- To specify all values, use *.
- طے شدہ: 0
- gsprop
Which additional coordinate properties to return. (Properties that are always returned: lat, lon, and either primary or secondary as a boolean flag.)
- type
- Type of the object the coordinates point to. See mw:Special:MyLanguage/Extension:GeoData#Usage for details.
- name
- چیز کا نام
- dim
- Approximate size of the object in meters.
- country
- ISO 3166-1 alpha-2 country code (e.g. US or RU).
- region
- ISO 3166-2 region code (the part of the ISO 3166-2 code after the dash; e.g. FL or MOS).
- globe
- Which terrestrial body the coordinates are relative to (e.g. moon or pluto). Defaults to Earth. See mw:Special:MyLanguage/Extension:GeoData#Glossary for details.
- قدریں (| سے امتیاز کیا گیا ہے یا متبادل): country، dim، globe، name، region، type
- طے شدہ: globe
- gsprimary
Which kind of coordinates to return.
- primary
- The location of the subject of the article. There is at most one primary coordinate per title.
- secondary
- The location of some object that's mentioned in the article. Any number of secondary coordinates can be associated with a title.
- all
- Return both primary and secondary coordinates.
- ذیل کی قدروں میں سے کوئی ایک: all، primary، secondary
- طے شدہ: primary
- gsdebug
Whether debug information should be returned.
- طرز: بولین (تفصیلات)
- 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 [تختۂ مشق میں کھولیں]