opencage-geocoding
v1.0.2Convert addresses to coordinates and reverse-geocode locations worldwide
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_location Search Location
Search for geographic locations by address, place name, or coordinates and return detailed geocoding results in JSON format.
| Parameter | Type | Description |
|---|---|---|
q * | string | The location to geocode: either a place name (e.g., 'Times Square, New York, USA'), landmark name (e.g., 'Eiffel Tower'), or coordinates in lat,lng format. Minimum 2 characters. |
abbrv | boolean | When enabled, abbreviates the formatted address field in results (e.g., 'USA' instead of 'United States of America'). |
address_only | boolean | When enabled, returns only the address portion in the formatted field, excluding additional details like business names or landmarks. |
bounds | string | Restricts results to a geographic area using a bounding box defined by southwest and northeast corner coordinates in lat,lng format. |
countrycode | string | Limits results to specific countries using a comma-separated list of ISO 3166-1 Alpha 2 country codes (e.g., 'de' for Germany, 'ch,li' for Switzerland and Liechtenstein). |
language | string | Sets the language for results using an IETF language code (e.g., 'de' for German, 'pt-BR' for Brazilian Portuguese) or 'native' to use the location's native language. |
limit | integer | Maximum number of results to return, between 1 and 100. Defaults to 10 results. |
proximity | string | Biases results toward a specific location using coordinates in lat,lng format, prioritizing nearby matches. |
roadinfo | boolean | When enabled, geocodes to the nearest road and includes detailed road information in the results. |
search_location_xml Search Location XML
Geocode a location query or coordinate pair and return results in XML format. Supports forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).
| Parameter | Type | Description |
|---|---|---|
q * | string | The location to geocode: either a place name/address (e.g., 'Times Square, New York, USA') or latitude,longitude coordinates (e.g., '52.5432379, 13.4142133'). Minimum 2 characters. |
abbrv | boolean | When enabled, abbreviates the formatted address field in results (e.g., 'St' instead of 'Street'). |
address_only | boolean | When enabled, returns only the address portion in the formatted field, excluding additional details. |
bounds | string | Restricts results to a geographic bounding box defined by southwest and northeast corner coordinates in the format: min_longitude,min_latitude,max_longitude,max_latitude. |
countrycode | string | Limits results to specific countries using a comma-separated list of ISO 3166-1 Alpha 2 country codes (e.g., 'de' for Germany, 'ch,li' for Switzerland and Liechtenstein). |
language | string | Returns results in the specified language using IETF language codes (e.g., 'de' for German, 'pt-BR' for Brazilian Portuguese), or 'native' for the region's native language. |
limit | integer | Maximum number of results to return, between 1 and 100. Defaults to 10 if not specified. |
proximity | string | Biases results toward a specific location using latitude,longitude coordinates, prioritizing nearby matches. |
roadinfo | boolean | When enabled, geocodes to the nearest road and includes road information annotations in the results. |
search_geojson Search GeoJSON
Search for geographic locations and return results in GeoJSON format. Supports geocoding by address, place name, or coordinates with optional filtering and result customization.
| Parameter | Type | Description |
|---|---|---|
q * | string | The location to geocode: either a place name (e.g., 'Times Square, New York, USA'), landmark name (e.g., 'Eiffel Tower'), or coordinates in lat,lng format. Minimum 2 characters required. |
address_only | boolean | When enabled, limits the formatted field in results to address details only, excluding other metadata. |
bounds | string | Restrict results to a geographic area by specifying a bounding box as four coordinates: southwest corner latitude, southwest corner longitude, northeast corner latitude, northeast corner longitude. |
countrycode | string | Limit results to specific countries by providing a comma-separated list of ISO 3166-1 Alpha 2 country codes (e.g., 'de' for Germany, 'ch,li' for Switzerland and Liechtenstein). |
language | string | Return results in a specific language using IETF language codes (e.g., 'de' for German, 'pt-BR' for Brazilian Portuguese), or use 'native' for the location's native language. |
limit | integer | Maximum number of results to return. Must be between 1 and 100; defaults to 10 if not specified. |
proximity | string | Bias results toward a specific location by providing coordinates in lat,lng format. Useful for prioritizing results near the user's current location. |
roadinfo | boolean | When enabled, geocodes to the nearest road and includes detailed road information in the results. |