tallgrass/client/location_area

Functions

pub fn fetch_for_pokemon_with_id(
  id: Int,
) -> Result(List(LocationArea), Error)

Fetches location areas for a given pokemon ID.

Example

let result = location_area.fetch_for_pokemon_with_id(1)
pub fn fetch_for_pokemon_with_name(
  name: String,
) -> Result(List(LocationArea), Error)

Fetches location areas for a given pokemon name.

Example

let result = location_area.fetch_for_pokemon_with_name("bulbasaur")
Search Document