{"openapi":"3.1.0","info":{"title":"WKT API","version":"1.0.0","description":"Convert geometry between WKT (Well-Known Text) and GeoJSON, in both directions. WKT is the textual geometry format used by PostGIS, Spatialite, GEOS, JTS, Shapely and the OGC Simple Features standard (POINT (30 10), LINESTRING (...), POLYGON ((...))); GeoJSON is what web maps and JavaScript expect. The to-geojson endpoint turns a WKT string into a GeoJSON geometry, and to-wkt does the reverse from a GeoJSON geometry or Feature. Supports Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon and GeometryCollection. Perfect for bridging a spatial database and a front-end map, importing and exporting geometry, and data-migration scripts. Pure local computation — no key, no third-party service, instant; send large geometries via POST. Live, nothing stored. 3 endpoints. Distinct from coordinate-format conversion, EPSG/CRS lookups, slippy map tiles and GeoJSON geospatial metrics.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/wkt-api","description":"oanor gateway"}],"tags":[{"name":"WKT"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/to-geojson":{"get":{"operationId":"get_v1_to_geojson","tags":["WKT"],"summary":"Convert WKT to GeoJSON","description":"","parameters":[{"name":"wkt","in":"query","required":true,"description":"WKT geometry string","schema":{"type":"string"},"example":"POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}},"meta":{"timestamp":"2026-06-02T16:51:46.471Z","request_id":"f5c8cdfe-6eb9-4c23-aa8e-283392fd5b3a"},"status":"ok","message":"WKT to GeoJSON","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/to-wkt":{"get":{"operationId":"get_v1_to_wkt","tags":["WKT"],"summary":"Convert GeoJSON to WKT","description":"","parameters":[{"name":"geojson","in":"query","required":true,"description":"GeoJSON geometry or Feature","schema":{"type":"string"},"example":"{\"type\":\"Point\",\"coordinates\":[30,10]}"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"wkt":"POINT (30 10)"},"meta":{"timestamp":"2026-06-02T16:51:46.577Z","request_id":"71abae52-028c-4c0d-ab4a-118215487ca6"},"status":"ok","message":"GeoJSON to WKT","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"name":"WKT API","notes":"Coordinates use [longitude, latitude] order in GeoJSON and (x y) = (lon lat) in WKT. Pass a single geometry; a FeatureCollection is not a single WKT geometry. Send large geometries via POST.","version":"v1","endpoints":[{"path":"/v1/to-geojson","params":{"wkt":"a WKT string, e.g. POINT (30 10) (required)"},"returns":"the GeoJSON geometry"},{"path":"/v1/to-wkt","params":{"geojson":"a GeoJSON geometry or Feature (required)"},"returns":"the WKT string"},{"path":"/v1/meta","params":[],"returns":"this document"}],"description":"Convert geometry between WKT (Well-Known Text, as used by PostGIS, GEOS, Shapely and OGC) and GeoJSON, in both directions. Supports Point, LineString, Polygon, their Multi* variants and GeometryCollection. Pure local, no key."},"meta":{"timestamp":"2026-06-02T16:51:46.682Z","request_id":"6112d8fa-7ae4-474a-a9c9-83c327c8b2b6"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":920,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":190,"monthly_call_quota":7700,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2060,"monthly_call_quota":133000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":5660,"monthly_call_quota":685000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/wkt-api"}