MusicBrainz API/Search/PlaceSearch: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
====Search Fields====
====Search Fields====
The [[Place|place]] index contains the following fields you can search:
The [[Place]] index contains the following fields you can search
{| border="1" class="wikitable sortable"
{| border="1" class="wikitable sortable"
|-
|-
| '''field''' || '''Description'''
! Field !! Description

|-
|-
| pid || the place ID
| address || (part of) the physical address for this place
|-
|-
| alias || (part of) any [[Aliases|alias]] attached to the place (diacritics are ignored)
| address || the address of this place
|-
|-
| area || (part of) the name of the place's main associated area
| alias || the aliases/misspellings for this area
|-
|-
| begin || the place's begin date (e.g. "1980-01-22")
| area || area name
|-
|-
| begin || place begin date
| comment || (part of) the place's disambiguation comment
|-
|-
| end || the place's end date (e.g. "1980-01-22")
| comment || disambiguation comment
|-
|-
| ended || a boolean flag (true/false) indicating whether or not the place has ended (is closed)
| end || place end date
|-
|-
| lat || the (WGS 84) latitude of the place's coordinates (e.g. "58.388226")
| ended || place ended
|-
|-
| long || the (WGS 84) longitude of the place's coordinates (e.g. "26.702817")
| lat || place latitude
|-
|-
| long || place longitude
| place || (part of) the place's name (diacritics are ignored)
|-
|-
| place || the place name (without accented characters)
| placeaccent || (part of) the place's name (with the specified diacritics)
|-
|-
| placeaccent || the place name (with accented characters)
| pid || the place's MBID
|-
|-
| type || the places type
| type || the place's [[Place#Type|type]]
|}
|}



Place search terms with no fields specified search the place, alias, address and area fields.
If you don't specify a field, the terms will be searched for in the ''address'', ''alias'', ''area'' and ''place'' fields.

Latest revision as of 12:19, 22 January 2021

Search Fields

The Place index contains the following fields you can search

Field Description
address (part of) the physical address for this place
alias (part of) any alias attached to the place (diacritics are ignored)
area (part of) the name of the place's main associated area
begin the place's begin date (e.g. "1980-01-22")
comment (part of) the place's disambiguation comment
end the place's end date (e.g. "1980-01-22")
ended a boolean flag (true/false) indicating whether or not the place has ended (is closed)
lat the (WGS 84) latitude of the place's coordinates (e.g. "58.388226")
long the (WGS 84) longitude of the place's coordinates (e.g. "26.702817")
place (part of) the place's name (diacritics are ignored)
placeaccent (part of) the place's name (with the specified diacritics)
pid the place's MBID
type the place's type


If you don't specify a field, the terms will be searched for in the address, alias, area and place fields.