Ask the GolfCore caddie
ask_caddieAsk GolfCore's caddie a question about the shot the golfer is standing over, such as which club to hit or where to aim. Pass the question in their words, and lat and lng only if your device gives you their GPS position; otherwise GolfCore uses the position from the GolfCore app on their phone. The caddie reads the distance to the flag, the hazards and trees on the line, wind modeled for the terrain, the elevation change, and the golfer's own handicap and club distances from their GolfCore account, and answers with a club and a line; the golfer signs in to GolfCore the first time. It needs GolfCore Premium; without it the result lists the plans, and subscribe_premium starts one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional. The golfer's precise latitude, only when your device gives you their GPS position. Never ask the golfer for coordinates: leave lat and lng out and GolfCore uses the position from the GolfCore app on their phone. | |
| lng | No | Optional. The golfer's precise longitude, with lat. | |
| hole | No | Optional. The hole number the golfer says they are on. Otherwise the hole is chosen from the position. | |
| course | No | Optional. The course slug, when known. Otherwise the course is found from the position. | |
| question | Yes | The golfer's question, in their words. | |
| accuracy_m | No | Optional. The location's horizontal accuracy in meters, when the device reports it. |