lat-lng-to-tile
Convert latitude and longitude coordinates to map tile coordinates (x, y) for a specific zoom level using the web mercator projection, ideal for mapping and geospatial applications.
Instructions
Convert latitude/longitude coordinates to map tile coordinates (x, y) for a given zoom level. Uses the same web mercator projection as MapKit.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
lat | Yes | Latitude in decimal degrees (-90 to 90) | |
lng | Yes | Longitude in decimal degrees (-180 to 180) | |
zoom | Yes | Zoom level (0-18) |