Opencage
opencageOpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.
Acciones disponibles (5)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Forward Geocode AddressOPENCAGE_GEOCODE_FORWARDAcciónTool to convert a human-readable address into geographic coordinates. use when you need to retrieve latitude and longitude from an address.
OPENCAGE_GEOCODE_FORWARDAcciónTool to convert a human-readable address into geographic coordinates. use when you need to retrieve latitude and longitude from an address.
Parámetros de entrada
qstringObligatorioThe address or free-form query to geocode
abbrvintegerReturn abbreviated results (0=false,1=true)
limitintegerMaximum number of results (1-100)
boundsstringBias results to bounding box: west,south,east,north
prettybooleanFormat the JSON response for readability
languagestringPreferred language for results (ISO 639-1 code)
proximitystringBias results near a point: latitude,longitude
add_requestintegerInclude original request in response (0=false,1=true)
countrycodestringRestrict to country codes (comma-separated ISO 3166-1 alpha-2)
min_confidenceintegerMinimum confidence score (1-10)
no_annotationsbooleanExclude supplementary information in results
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Geocode to GeoJSONOPENCAGE_GEOCODE_GEOJSONAcciónTool to geocode and return geojson. use when you need geojson featurecollection.
OPENCAGE_GEOCODE_GEOJSONAcciónTool to geocode and return geojson. use when you need geojson featurecollection.
Parámetros de entrada
qstringObligatorioQuery string (address, placename, or 'lat,lng').
abbrvintegerUse abbreviated fields: 1 or 0.
limitintegerMaximum results to return (1-100).
boundsstringRestrict to bounding box: min_lon,min_lat,max_lon,max_lat.
prettybooleanPretty-print the JSON response.
languagestringPreferred language (IETF code, e.g., 'en').
roadinfobooleanInclude road information.
proximitystringBias results near 'lat,lng'.
add_requestbooleanInclude original request in response.
countrycodestringRestrict to country (ISO 3166-1 alpha-2).
address_onlybooleanReturn only address-type results.
min_confidenceintegerMinimum confidence level (0-10).
no_annotationsbooleanExclude detailed annotations (timezone, currency, etc.).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Geocode with JSONPOPENCAGE_GEOCODE_GEOJSONPAcciónTool to perform geocoding and return results in geojsonp format. use when you need a javascript callback wrapped response.
OPENCAGE_GEOCODE_GEOJSONPAcciónTool to perform geocoding and return results in geojsonp format. use when you need a javascript callback wrapped response.
Parámetros de entrada
qstringObligatorioThe address or coordinates to geocode
abbrvintegerWhether to abbreviate results; 1 to shorten, 0 otherwise
jsonpintegerForce JSONP output; set to 1 to output JSONP
limitintegerMaximum number of results (default: 10; max: 100)
boundsstringRestrict the search region to a bounding box as 'minLon,minLat,maxLon,maxLat'
prettyintegerPretty-print output; for debugging only
callbackstringObligatorioName of the JavaScript callback function
languagestringPreferred language for results (ISO 639-1 code)
no_dedupeintegerDisable result deduplication; 1 to disable
no_recordintegerDo not log this request; 1 to disable logging
proximitystringBias results to this location as 'lat,lon'
add_requestintegerWhether to include the request in the response; 1 to include
countrycodestringLimit results to this ISO 3166-1 alpha-2 country code
min_confidenceintegerMinimum confidence level to return (0-10)
no_annotationsintegerExclude extra information; 1 to exclude
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reverse Geocode CoordinatesOPENCAGE_GEOCODE_REVERSEAcciónTool to convert coordinates to a human-readable address. use when you have latitude and longitude and need a readable location.
OPENCAGE_GEOCODE_REVERSEAcciónTool to convert coordinates to a human-readable address. use when you have latitude and longitude and need a readable location.
Parámetros de entrada
qstringObligatorioLatitude and longitude as a comma-separated string, e.g., '51.952659,7.632473'
abbrvinteger1 to abbreviate road and route types
limitintegerMaximum number of results to return (1-10)
prettyinteger1 for pretty-printed JSON, 0 (default) for compact output
languagestringPreferred response language as ISO 639-1 code, e.g., 'en'
roadinfointeger1 to include road information in the response
add_requestinteger1 to include request parameters in the response
countrycodestringRestrict results to one or more ISO 3166-1 alpha-2 country codes separated by commas
normalizecityinteger1 to normalize city names
min_confidenceintegerMinimum confidence level (0-10) to filter results
no_annotationsinteger1 to exclude annotations in the response
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Geocode XMLOPENCAGE_GEOCODE_XMLAcciónTool to perform geocoding and return results in xml format. use when you need xml-formatted geocoding responses from opencage.
OPENCAGE_GEOCODE_XMLAcciónTool to perform geocoding and return results in xml format. use when you need xml-formatted geocoding responses from opencage.
Parámetros de entrada
qstringObligatorioLocation query for forward (text) or reverse ('lat,lng') geocoding
keystringObligatorioYour OpenCage API key
abbrvintegerenum1 for abbreviated components, 0 for full components
01limitintegerMaximum number of results to return (1–100)
prettyintegerenum1 for pretty-printed XML, 0 for compact output
01callbackstringJSONP callback function name (not used for XML responses)
languagestringTwo-letter IETF language tag for results (e.g., 'en', 'de')
roadinfointegerenum1 to include road information near the location
01no_dedupeintegerenum1 to disable deduplication of results, 0 to dedupe
01add_requestintegerenum1 to include a copy of input parameters in the response
01countrycodeanyRestrict results to this two-letter country code
min_confidenceintegerOnly include results with this confidence or higher (1–10)
no_annotationsintegerenum1 to exclude annotations, 0 to include
01
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not