Skip to content

How are the coordinates determined? #44

Closed

Description

@patrickleboutillier

Not sure where to ask this question, but here goes.

I'm trying to understand this tutorial, but I can't figure out how Claude gets the coordinates for a city to get the forecast?
Are those part of default resources that the model has access to?

Maybe this could be explained in the docs.

Activity

  1. bdtranter commented on Aug 7, 2025

    @bdtranter

    You provide the coordinates in the query.

  2. patrickleboutillier commented on Aug 7, 2025

    @patrickleboutillier
    Author
  3. a-akimov commented on Apr 1, 2026

    @a-akimov
    Contributor

    In this case Claude detects the 2-letter state code (e.g. CA, NY) and passes it to the get_alerts(state: str) tool, which in turn calls the https://api.weather.gov/alerts/active/area/{state} url (e.g. https://api.weather.gov/alerts/active/area/MI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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