{"openapi":"3.1.0","info":{"title":"BuddyGeo Geocoding API","version":"1.0.0","description":"Self-hosted forward geocoding, reverse geocoding, Nominatim-compatible aliases, bulk batch processing, usage accounting, and extended spatial engines. Authenticate with the `X-API-Key` header only (query-string credentials are rejected)."},"servers":[{"url":"https://www.buddygeo.com","description":"BuddyGeo APISIX API Gateway"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Geocoding","description":"Versioned forward and reverse geocoding"},{"name":"Nominatim compatibility","description":"Drop-in Nominatim JSONv2 aliases sharing organization limits and credits"},{"name":"Bulk","description":"Asynchronous batch geocoding jobs with idempotency keys"},{"name":"Usage","description":"Authoritative organization credit balance and analytics"},{"name":"AI Modules","description":"Managed Cascade AI address repair, grounded Spatial Q&A, smart schema inference, and Hosted MCP server"},{"name":"Extended capabilities","description":"Self-hosted spatial preview engines"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Organization API key created in the BuddyGeo dashboard. Kept in memory only in Scalar Try It."}},"schemas":{"ApiError":{"type":"object","required":["code","message","next_step"],"properties":{"code":{"type":"string","enum":["invalid_coordinates","invalid_query","missing_api_key","invalid_api_key","revoked_api_key","rate_limited","quota_exhausted","overage_cap_reached","ai_quota_exhausted","ai_provider_unavailable","ai_disabled","payload_too_large","upstream_timeout","upstream_unavailable"]},"message":{"type":"string"},"next_step":{"type":"string"},"retry_after_s":{"type":"integer"},"field":{"type":"string"}}},"ErrorResponse":{"type":"object","properties":{"request_id":{"type":"string"},"error":{"$ref":"#/components/schemas/ApiError"}}},"GeocodeResult":{"type":"object","properties":{"place_id":{"type":"string"},"formatted":{"type":"string"},"components":{"type":"object","additionalProperties":true},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"bounding_box":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4},"match":{"type":"object","properties":{"level":{"type":"string"},"detail":{"type":"string"},"distance_m":{"type":"number"},"osm_type":{"type":"string"},"osm_id":{"type":"integer"},"category":{"type":"string"},"type":{"type":"string"}}},"language":{"type":"string"}}},"BatchSubmission":{"type":"object","required":["direction","rows"],"properties":{"name":{"type":"string"},"direction":{"type":"string","enum":["coordinates","address"]},"exclude_invalid_rows":{"type":"boolean","default":false},"ai_repair_enabled":{"type":"boolean","default":false,"description":"Enable Cascade AI messy-address repair on forward-geocoding rows that miss or degrade in Stage 1."},"max_ai_actions":{"type":"integer","minimum":0,"description":"Optional cap on AI actions reserved and spent for this batch job."},"rows":{"type":"array","items":{"type":"object","properties":{"row_id":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"address":{"type":"string"}}}}}},"UsageSummary":{"type":"object","required":["request_id","organization_id","plan_id","allowance","used","reserved","available","requests_per_second","period_start","period_end","state"],"properties":{"request_id":{"type":"string"},"organization_id":{"type":"string"},"plan_id":{"type":"string","enum":["free","developer","growth"]},"allowance":{"type":"integer"},"used":{"type":"integer"},"reserved":{"type":"integer"},"available":{"type":"integer"},"requests_per_second":{"type":"integer"},"period_start":{"type":"string","format":"date-time"},"period_end":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["ok","near_limit","exhausted"]},"ai_allowance":{"type":"integer"},"ai_used":{"type":"integer"},"ai_reserved":{"type":"integer"},"ai_available":{"type":"integer"},"prepaid_credits_available":{"type":"integer"},"prepaid_ai_available":{"type":"integer"},"overage_enabled":{"type":"boolean"},"overage_active":{"type":"boolean","description":"True when opt-in metered overages are enabled AND not blocked by a payment issue or scheduled cancellation."},"overage_blocked_reason":{"type":["string","null"],"enum":["payment_issue","cancel_scheduled",null]},"overage_cap_cents":{"type":["integer","null"]},"overage_accrued_cents":{"type":"integer"},"overage_credits_used":{"type":"integer"},"overage_ai_used":{"type":"integer"},"spatial_overage_rate_per_1k_cents":{"type":["integer","null"]},"ai_overage_rate_per_1k_cents":{"type":["integer","null"]}}}}},"paths":{"/v1/search":{"get":{"operationId":"searchPlaces","tags":["Geocoding"],"summary":"Forward geocode an address or place name","description":"1 credit for a matched search (regardless of candidate count, including cache hits); 0 credits for no match, invalid input, rate limit, quota exhaustion, or upstream failure.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"CN Tower, Toronto"},{"name":"language","in":"query","schema":{"type":"string","default":"en"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}},{"name":"country","in":"query","schema":{"type":"string"},"description":"ISO 3166-1 alpha-2 country code filter"}],"responses":{"200":{"description":"Normalized forward geocode envelope"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/reverse":{"get":{"operationId":"reverseGeocode","tags":["Geocoding"],"summary":"Reverse geocode a WGS84 latitude/longitude coordinate","description":"1 credit for a match (including cache hits); 0 credits for no match, invalid coordinates, rate limit, quota exhaustion, or upstream failure.","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90},"example":43.6426},{"name":"lon","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180},"example":-79.3871},{"name":"language","in":"query","schema":{"type":"string","default":"en"}},{"name":"detail","in":"query","schema":{"type":"string","enum":["full","street","locality"],"default":"full"}}],"responses":{"200":{"description":"Normalized reverse geocode envelope"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/reverse":{"get":{"operationId":"nominatimReverse","tags":["Nominatim compatibility"],"summary":"Nominatim-compatible reverse geocoding alias","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number"},"example":43.6426},{"name":"lon","in":"query","required":true,"schema":{"type":"number"},"example":-79.3871},{"name":"format","in":"query","schema":{"type":"string","default":"jsonv2"}},{"name":"addressdetails","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"Nominatim JSONv2 place or error object"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/search":{"get":{"operationId":"nominatimSearch","tags":["Nominatim compatibility"],"summary":"Nominatim-compatible forward search alias","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"CN Tower, Toronto"},{"name":"format","in":"query","schema":{"type":"string","default":"jsonv2"}},{"name":"limit","in":"query","schema":{"type":"integer","default":5}}],"responses":{"200":{"description":"Array of Nominatim JSONv2 places"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/batches":{"post":{"operationId":"createBatch","tags":["Bulk"],"summary":"Submit a durable asynchronous batch geocoding job","description":"Requires an organization-scoped `Idempotency-Key` header. Replays with an identical payload return the original job; changed payloads under the same key return 409 Conflict.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSubmission"}}}},"responses":{"202":{"description":"Batch job queued and credits reserved"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Idempotency key reused with a different payload"},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/batches/{job_id}":{"get":{"operationId":"getBatchStatus","tags":["Bulk"],"summary":"Get batch job status and credit settlement counts (0 credits)","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch job metadata and counts"},"404":{"description":"Job not found in this organization"}}},"delete":{"operationId":"cancelBatchJob","tags":["Bulk"],"summary":"Cancel an active batch job and release remaining reserved credits","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch job cancelled"},"404":{"description":"Job not found"}}}},"/v1/batches/{job_id}/results":{"get":{"operationId":"getBatchResults","tags":["Bulk"],"summary":"Download batch job results as JSON, CSV, or XLSX (0 credits)","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv","xlsx","errors"],"default":"json"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":200},"description":"Page size for JSON format (max 200 rows per page)."},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0},"description":"Row offset for JSON format pagination."},{"name":"status","in":"query","schema":{"type":"string","enum":["pending","matched","no_match","invalid","failed","unprocessed"]},"description":"Optional row status filter for JSON format."}],"responses":{"200":{"description":"Enriched rows (paginated for JSON) or downloadable file"},"410":{"description":"Result files expired and purged"}}}},"/v1/usage":{"get":{"operationId":"getUsage","tags":["Usage"],"summary":"Get authoritative credit balance, prepaid packs, overage state, and reset date (0 credits)","responses":{"200":{"description":"Organization credit balance and plan summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummary"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/ai/clean-geocode":{"post":{"operationId":"cleanGeocode","tags":["AI Modules"],"summary":"Cascade AI messy-address repair & deterministic verification (1 credit Stage 1, 2 credits + 1 AI action when AI-repaired, 0 on no match)","description":"Strips delivery notes, recipient names, buzzers, and typos via structured SLM decomposition ONLY when Stage 1 deterministic lookup misses or degrades to a coarse centroid, then verifies coordinates strictly against OpenStreetMap Nominatim. Uses included monthly AI actions, prepaid AI packs, or opt-in metered AI overages.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["q"],"properties":{"q":{"type":"string","maxLength":500},"country":{"type":"string","minLength":2,"maxLength":2},"language":{"type":"string","default":"en"},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5},"return_notes":{"type":"boolean","default":true}}}}}},"responses":{"200":{"description":"Verified geocode result + AI repair audit & extracted notes"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/ai/ask":{"post":{"operationId":"askSpatialQa","tags":["AI Modules"],"summary":"Grounded Natural Language Spatial Q&A (2 credits + 1 AI action when verified, 0 on error/unverified)","description":"Plans and executes deterministic Nominatim, Valhalla (route/isochrone/matrix), and PostGIS (nearby/boundaries/timezone) queries from a plain-English question, optionally over inline points or a completed workspace batch job, and returns a grounded answer with citations and RFC 7946 GeoJSON.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["question"],"properties":{"question":{"type":"string","minLength":3,"maxLength":1000},"points":{"type":"array","maxItems":200,"items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"address":{"type":"string"}}}},"batch_job_id":{"type":"string"},"country":{"type":"string","minLength":2,"maxLength":2},"language":{"type":"string","default":"en"}}}}}},"responses":{"200":{"description":"Grounded spatial answer, tool trace, citations, matched points, and GeoJSON"},"400":{"description":"Invalid input parameters (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Monthly credit/AI allowance exhausted or monthly overage spend cap reached (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request body exceeded route payload size limit (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Organization per-second rate limit exceeded at APISIX/Redis (0 credits charged)","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Upstream geocoder unavailable (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Upstream geocoder deadline exceeded (0 credits charged)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/mcp":{"post":{"operationId":"mcpJsonRpc","tags":["AI Modules"],"summary":"Hosted Streamable HTTP Model Context Protocol (MCP) JSON-RPC 2.0 endpoint (11 spatial & AI tools)","description":"Connect remote AI agents, Claude, Cursor, or custom MCP clients over Streamable HTTP with `X-API-Key`. Supports `initialize`, `ping`, `tools/list`, and `tools/call` across geocoding, Cascade AI repair, Spatial Q&A, routing, isochrones, matrices, nearby places, and batch jobs.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","number","null"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC 2.0 MCP response payload"},"202":{"description":"Accepted JSON-RPC notification"},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"operationId":"mcpMetadata","tags":["AI Modules"],"summary":"Inspect Hosted MCP Server metadata, protocol versions, and exposed tool names (0 credits)","responses":{"200":{"description":"Hosted MCP server discovery document"},"401":{"description":"Missing, invalid, or revoked X-API-Key rejected at APISIX gateway (0 credits charged). Query-string keys are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/batch/infer-schema":{"post":{"operationId":"inferBatchSchema","tags":["Bulk","AI Modules"],"summary":"Smart AI column schema inference from CSV headers + 5 masked sample rows (0 credits)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["headers"],"properties":{"headers":{"type":"array","items":{"type":"string"}},"sample_rows":{"type":"array","maxItems":5,"items":{"type":"array","items":{"type":"string"}}}}}}}},"responses":{"200":{"description":"Suggested column mapping for bulk upload"}}}},"/v1/capabilities":{"get":{"operationId":"listCapabilities","tags":["Extended capabilities"],"summary":"Inspect configured extended spatial engines, coverage, and readiness","security":[],"responses":{"200":{"description":"Capability registry report"}}}}}}