Integrate Tesseract AR's coastline identification technology into your app. Get the name, distance, and bearing of coastal features from any location and heading.
Sign up for a free account and generate your API key from the developer dashboard.
Use the endpoint below to identify coastline features based on location and heading.
Parse the JSON response and display coastline information to your users.
https://api.tesseract.ar/seeshore/at_headingReturns the nearest coastline feature visible from the specified location and heading.
Include your API key in the request header:
X-API-Key: YOUR_API_KEYlatnumberrequiredLatitude of the observer's location (-90 to 90)
Example: 42.3601
lonnumberrequiredLongitude of the observer's location (-180 to 180)
Example: -71.0589
headingnumberrequiredCompass heading in degrees (0-360, where 0/360 is North)
Example: 64
curl -X GET 'https://api.tesseract.ar/seeshore/at_heading?lat=42.3601&lon=-71.0589&heading=64' \ -H 'X-API-Key: YOUR_API_KEY'
{
"success": true,
"data": {
"name": "Cape Ann",
"location": {
"lat": 42.6598,
"lon": -70.5661
},
"distance": {
"miles": 10.6,
"kilometers": 17.1
},
"bearing": 64,
"type": "cape",
"region": "Massachusetts",
"country": "United States",
"wikipedia_url": "https://en.wikipedia.org/wiki/Cape_Ann"
}
}success(boolean)Indicates if the request was successfuldata.name(string)Name of the identified coastal featuredata.location(object)Latitude and longitude of the featuredata.distance(object)Distance to the feature in miles and kilometersdata.bearing(number)Compass bearing to the featuredata.type(string)Type of feature (cape, town, island, etc.)data.region(string)State/province of the featuredata.country(string)Country of the featuredata.wikipedia_url(string)Link to Wikipedia article (if available)| Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters (lat/lon/heading out of range) |
| 401 | Unauthorized - Missing or invalid API key |
| 403 | Forbidden - API key lacks required permissions |
| 404 | Not Found - No coastline visible from specified location/heading |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server error, contact support |
We provide official SDKs to make integration easier. More languages coming soon.
npm install @tesseract/apipip install tesseract-arCheck out our documentation, join the developer community, or contact support.