Skip to content

Get region (and zone) from a place name? #16

@ek68794998

Description

@ek68794998

When retrieving content such as a levequest (e.g. 205), the place name is returned as such:

  "placename": {
    "icon": "https://secure.xivdb.com/img/ui/aether.png",
    "icon_hq": "https://secure.xivdb.com/img/ui/noicon.png",
    "id": 200,
    "lodestone_id": null,
    "lodestone_type": null,
    "maps": [],
    "name": "Red Rooster Stead",
    "patch": false,
    "url": "/placename/200/red+rooster+stead",
    "url_api": "https://api.xivdb.com/placename/200",
    "url_type": "placename",
    "url_xivdb": "https://xivdb.com/placename/200/red+rooster+stead",
    "url_xivdb_de": "https://de.xivdb.com/placename/200/red+rooster+stead",
    "url_xivdb_fr": "https://fr.xivdb.com/placename/200/red+rooster+stead",
    "url_xivdb_ja": "https://ja.xivdb.com/placename/200/red+rooster+stead"
  },

However, this gives no information about the zone or region (which are available from a source such as GamerEscape). Even looking up the place name directly does not give this data (region seems to always be 0 except for Duty locations):

{
  "enemies": [],
  "gathering": [],
  "icon": "https://secure.xivdb.com/img/ui/aether.png",
  "icon_hq": "https://secure.xivdb.com/img/ui/noicon.png",
  "id": 200,
  "instances": null,
  "lodestone_id": null,
  "lodestone_type": null,
  "maps": [],
  "name": "Red Rooster Stead",
  "name_cns": "",
  "name_de": "Gockelburg",
  "name_en": "Red Rooster Stead",
  "name_fr": "Métairie Du Coq Rouge",
  "name_ja": "レッドルースター農場",
  "npcs": [],
  "patch": false,
  "quests": null,
  "region": 0,
  "url": "/placename/200/red+rooster+stead",
  "url_api": "https://api.xivdb.com/placename/200",
  "url_type": "placename",
  "url_xivdb": "https://xivdb.com/placename/200/red+rooster+stead",
  "url_xivdb_de": "https://de.xivdb.com/placename/200/red+rooster+stead",
  "url_xivdb_fr": "https://fr.xivdb.com/placename/200/red+rooster+stead",
  "url_xivdb_ja": "https://ja.xivdb.com/placename/200/red+rooster+stead",
  "_cid": 200,
  "_type": "placename"
}

Is there any way to get the region (and zone, if possible) of a place such as this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions