GET /v1/coordinate-validateValidate lat/lng coordinates
Validation Utils lf-validation-utils
Checks that a latitude and longitude pair sits inside the allowed range. Validates geographic coordinates: latitude (-90 to 90) and longitude (-180 to 180) ranges.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lat | number | No | Latitude |
lng | number | No | Longitude |
input | string | No | Comma/space-separated lat,lng |
Response Schema
success (boolean): Operation success
latitude (number): Parsed latitude
longitude (number): Parsed longitude
valid (boolean): Overall validity
lat_valid (boolean): Latitude valid
lng_valid (boolean): Longitude valid
errors (array): Validation errors
cURL Example
curl 'https://lf-validation-utils.laminarforge.dev/v1/coordinate-validate?lat=40.71&lng=-74.01' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-validation-utils.laminarforge.dev/v1/coordinate-validate'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'lat': 40.71, 'lng': -74.01}
response = requests.get(url, headers=headers, params=params)
print(response.json())