API:1/continents

From Guild Wars 2 Wiki
Jump to navigationJump to search

/v1/continents.json

HTTP method
GET
Format
json
API version
version 1
Release date
?
Scope
none
Optional
none

This resource returns static information about the continents used with the map_floor resource.

Parameters

Optional parameters
  • lang – The language to display the texts in.
    • Possible values:
en (English, default)
de (German)
es (Spanish)
fr (French)

Response

The response is an object with the single property continents which contains an object where continent ids are mapped to an object, containing the following properties:

  • name (string) – The name of the continent.
  • continent_dims (dimension) – The width and height dimensions of the continent.
  • min_zoom (number) – The minimal zoom level for use with the map tile service.
  • max_zoom (number) – The maximum zoom level for use with the map tile service.
  • floors (list) – A list of floors available for this continent.

Note: There are only two continents, Tyria and Mists.

Special types
  • Dimension properties are two-element lists of width and height.

Example

https://api.guildwars2.com/v1/continents.json

{
  "continents": {
    "1": {
      "name": "Tyria",
      "continent_dims": [ 32768, 32768 ],
      "min_zoom": 0,
      "max_zoom": 7,
      "floors": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
          18, 19, 30, -2, -3, -4, -5, -6, -7, -8, -10, -11, -15, -16, -17, 38,
          20, 21, 22, 23, 24, 25, 26, 27, 34, 36, 37 ]
    },
    "2": {
      "name": "Mists",
      "continent_dims": [ 16384, 16384 ],
      "min_zoom": 0,
      "max_zoom": 6,
      "floors": [ 1, 3, 5, 6, 7, 8, 9, 10, 13, 14, 18, 19, 21, 22, 23, 24, 25,
          26, -27, -28, -29, -30, -31, -32, -33, 27 ]
    }
  }
}