localize
Pass a session SCR and new coordinates to move an existing map view; receive only the delta of entered, left, and updated places plus the new SCR to store.
Instructions
Move within a map session you already hold. Pass the session SCR (from get_maplet with returnScr, or from the last localize) and your new position; the answer is only the delta: + places that entered view, - places that left it, ~ places that moved or updated. Store the updated SCR from the second content block and discard the old one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude in WGS84 degrees. | |
| lon | Yes | Longitude in WGS84 degrees. | |
| scr | Yes | Session state: the SCR string from the previous get_maplet or localize. | |
| budget | No | Token budget for the re-fit view. Default 1024, hard cap 8192. | |
| layers | No | Semantic layers to include, e.g. ["road", "poi"]. Default all. | |
| radiusM | No | Radius in metres. Default 300. |