Locate caller in Singapore
locate_meResolve a public IP or supplied latitude/longitude to coordinates and the nearest NEA PSI region, so you can confirm the location used by Singapore air quality and rainfall tools.
Instructions
Resolve the caller's location (public IP by default) to coordinates and the nearest NEA PSI region. Useful to check what the other tools will use before calling them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | Geolocate this IP instead of the machine's own public IP. | |
| lat | No | Latitude, if the caller already knows where they are (skips IP lookup). | |
| lon | No | Longitude, paired with lat. | |
| lang | No | Language for labels and health advice. Defaults to SG_HAZE_LANG or 'en'. |