Locations Group
July 28, 2025 ยท View on GitHub
The following are the resources available in the Locations group of the PokeAPI.
Location
Get single Location resource by Name or ID:
// Main client example with ID
location, err := client.Locations.GetLocation("1")
// Individual resource group example with Name
location, err := locationsGroup.GetLocation("canalave-city")
Get list of Location resource:
// Main client example
locationList, err := client.Locations.GetLocationList(limit, offset)
// Individual resource group example
locationList, err := locationsGroup.GetLocationList(limit, offset)
Get the Location resource URL:
// Main client example
locationURL := client.Locations.GetLocationURL()
// Individual resource group example
locationURL := locationsGroup.GetLocationURL()
Location Area
Get single Location Area resource by Name or ID:
// Main client example with ID
locationArea, err := client.Locations.GetLocationArea("1")
// Individual resource group example with Name
locationArea, err := locationsGroup.GetLocationArea("canalave-city-area")
Get list of Location Area resource:
// Main client example
locationAreaList, err := client.Locations.GetLocationAreaList(limit, offset)
// Individual resource group example
locationAreaList, err := locationsGroup.GetLocationAreaList(limit, offset)
Get the Location Area resource URL:
// Main client example
locationAreaURL := client.Locations.GetLocationAreaURL()
// Individual resource group example
locationAreaURL := locationsGroup.GetLocationAreaURL()
Pal Park Area
Get single Pal Park Area resource by Name or ID:
// Main client example with ID
palParkArea, err := client.Locations.GetPalParkArea("1")
// Individual resource group example with Name
palParkArea, err := locationsGroup.GetPalParkArea("forest")
Get list of Pal Park Area resource:
// Main client example
palParkAreaList, err := client.Locations.GetPalParkAreaList(limit, offset)
// Individual resource group example
palParkAreaList, err := locationsGroup.GetPalParkAreaList(limit, offset)
Get the Pal Park Area resource URL:
// Main client example
palParkAreaURL := client.Locations.GetPalParkAreaURL()
// Individual resource group example
palParkAreaURL := locationsGroup.GetPalParkAreaURL()
Region
Get single Region resource by Name or ID:
// Main client example with ID
region, err := client.Locations.GetRegion("1")
// Individual resource group example with Name
region, err := locationsGroup.GetRegion("kanto")
Get list of Region resource:
// Main client example
regionList, err := client.Locations.GetRegionList(limit, offset)
// Individual resource group example
regionList, err := locationsGroup.GetRegionList(limit, offset)
Get the Region resource URL:
// Main client example
regionURL := client.Locations.GetRegionURL()
// Individual resource group example
regionURL := locationsGroup.GetRegionURL()