====== ThinkGeo Cloud Reverse Geocoding ====== ThinkGeo Cloud Reverse Geocoding provides RESTful APIs to find an address from a location/location coordinates. Check out the [[https://cloudclientsamples.thinkgeo.com/#Reverse-Geocoding|online sample]] for a quick look. ===== RESTful APIs ===== * //**Try it Online**:// All the ThinkGeo Cloud RESTful APIs can be tested online following the instructions below: * Get a ThinkGeo Cloud Client Key. Check out [[https://wiki.thinkgeo.com/wiki/thinkgeo_cloud_client_keys_guideline|ThinkGeo Cloud Client Keys Guideline]] see how to apply one. It's free for 60 days. * Visit our [[https://cloud.thinkgeo.com/help/|ThinkGeo Cloud API Explorer]], click the "Authorize" button at the top and enter your client credentials. You are then free to play with all the APIs online. //**ThinkGeo Cloud ReverseGeocoding provides the following Restful APIs**.// ==== Get Reverse Geocoding For Point ==== Get reverse geocoding for point. HTTP GET https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/{pointY},{pointX} //**URL Parameters**// * pointY: The Y coordinate of the point. * pointX: The X coordinate of the point. * srid: Optional. The SRID (coordinate system) in which to express the result. Defaults to 4326. * proj4String: Optional. The Proj4String (coordinate system) in which to express the result. * lang: Optional. The language in which to express the result. * searchRadius: Optional. The maximun radius around the input point to search for places. Defaults to 200. * searchRadiusUnit: Optional. The unit of measure in which the SearchRadius is expressed. Defaults to "Meter". * maxResults: Optional. The maximum number of results to return. Defaults to 20. * locationCategories: Optional. The categories of locations to include in the result set. The default value is "Common". * locationTypes: Optional. Filters the resulting locations by type. Multiple types should be separated by a comma. Defaults to no filter. * verboseResults: Optional. Indicates whether the results should be verbose or not. When false, the results will have fewer properties. Defaults to false. * distanceFromQueryFeatureUnit: Optional. The unit of measure in which the distance is expressed. Defaults to "Meter". Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/ReverseGeocodeByPointV1|GetReverseGeocodingForPoint]] and click "Try It Out" to explore this API online. ==== Reverse Geocode By Points (Batch Request) ==== Get reverse geocoding for points. HTTP POST https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/multi //**POST Body (Content-Type: application/json)**// [ { "coord": "string", // The coordinates of the point. The format is: y,x. "srid": int, // Optional. The SRID (coordinate system) in which to express the result. Defaults to 4326. "proj4String": "string", // Optional. The Proj4String (coordinate system) in which to express the result. "lang": "string", // Optional. The language in which to express the result. "searchRadius": int, // Optional. The maximun radius around the input point to search for places. Defaults to 200. "searchRadiusUnit": "Meter", // Optional. The unit of measure in which the SearchRadius is expressed. Defaults to "Meter". "maxResults": int, // Optional. The maximum number of results to return. Defaults to 20. "locationCategories": "string", // Optional. The categories of locations to include in the result set. The default value is "Common". "locationTypes": "string", // Optional. Filters the resulting locations by type. Multiple types should be separated by a comma. Defaults to no filter. "verboseResults": bool, // Optional. Indicates whether the results should be verbose or not. When false, the results will have fewer properties. Defaults to false. "distanceFromQueryFeatureUnit": "Meter" // Optional. The unit of measure in which the distance is expressed. Defaults to "Meter". } ] Each item in the batch can locally override a parameter specified on the request URL. //**URL Parameters**// * srid: Optional. The SRID (coordinate system) in which to express the result. Defaults to 4326. * proj4String: Optional. The Proj4String (coordinate system) in which to express the result. * lang: Optional. The language in which to express the result. * searchRadius: Optional. The maximun radius around the input point to search for places. Defaults to 200. * searchRadiusUnit: Optional. The unit of measure in which the SearchRadius is expressed. Defaults to "Meter". * maxResults: Optional. The maximum number of results to return. Defaults to 20. * locationCategories: Optional. The categories of locations to include in the result set. The default value is "Common". * locationTypes: Optional. Filters the resulting locations by type. Multiple types should be separated by a comma. Defaults to no filter. * verboseResults: Optional. Indicates whether the results should be verbose or not. When false, the results will have fewer properties. Defaults to false. * distanceFromQueryFeatureUnit: Optional. The unit of measure in which the distance is expressed. Defaults to "Meter". Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/ReverseGeocodeByPointsBatchV1|ReverseGeocodeByPointsBatch]] and click "Try It Out" to explore this API online. ==== Get Reverse Geocoding For Area ==== Get reverse geocoding for area. Returns locations found only within the polygon you specify. HTTP GET https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/area?wkt={polygon} //**URL Parameters**// * wkt: The Well Known Text (WKT) of the polygon feature to use as the search area. * srid: Optional. The SRID (coordinate system) in which to express the result. Defaults to 4326. * proj4String: Optional. The Proj4String (coordinate system) in which to express the result. * lang: Optional. The language in which to express the result. * searchRadius: Optional. The maximun radius around the input point to search for places. Defaults to 200. * searchRadiusUnit: Optional. The unit of measure in which the SearchRadius is expressed. Defaults to "Meter". * maxResults: Optional. The maximum number of results to return. Defaults to 20. * locationCategories: Optional. The categories of locations to include in the result set. The default value is "Common". * locationTypes: Optional. Filters the resulting locations by type. Multiple types should be separated by a comma. Defaults to no filter. * verboseResults: Optional. Indicates whether the results should be verbose or not. When false, the results will have fewer properties. Defaults to false. * distanceFromQueryFeatureUnit: Optional. The unit of measure in which the distance is expressed. Defaults to "Meter". Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/ReverseGeocodeByAreaV1|GetReverseGeocodingForArea]] and click "Try It Out" to explore this API online. ==== Get Reverse Geocoding For Line ==== Get reverse geocoding along a line. Useful for seeing what addresses or places are located along a road or highway. HTTP GET https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/line?wkt={line} //**URL Parameters**// * wkt: The Well Known Text (WKT) of the line feature to use as the search area. * srid: Optional. The SRID (coordinate system) in which to express the result. Defaults to 4326. * proj4String: Optional. The Proj4String (coordinate system) in which to express the result. * lang: Optional. The language in which to express the result. * searchRadius: Optional. The maximun radius around the input point to search for places. Defaults to 200. * searchRadiusUnit: Optional. The unit of measure in which the SearchRadius is expressed. Defaults to "Meter". * maxResults: Optional. The maximum number of results to return. Defaults to 20. * locationCategories: Optional. The categories of locations to include in the result set. The default value is "Common". * locationTypes: Optional. Filters the resulting locations by type. Multiple types should be separated by a comma. Defaults to no filter. * verboseResults: Optional. Indicates whether the results should be verbose or not. When false, the results will have fewer properties. Defaults to false. * distanceFromQueryFeatureUnit: Optional. The unit of measure in which the distance is expressed. Defaults to "Meter". Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/ReverseGeocodeByLineV1|GetReverseGeocodingForLine]] and click "Try It Out" to explore this API online. ==== Get Place By ID ==== Get details about a specific point of interest by its ID. Places returned in response to your reverse geocode requests will have IDs associated with them, which you can use with this endpoint. HTTP GET https://cloud.thinkgeo.com/api/v1/location/place/{placeId} //**URL Parameters**// * placeId: The OpenStreetMap ID of the place. * lang: Optional. Sets the language for the search result. The default value is "en". Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/GetPlaceByIdV1|GetPlaceById]] and click "Try It Out" to explore this API online. ==== Get Location Categories ==== Get a list of the available location categories. These can be passed in to the reverse geocoding endpoints to filter the types of locations the service will return to you. HTTP GET https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/location-categories //**URL Parameters**//
No parameters.
Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/GetReverseGeocodingLocationCategoriesV1|GetLocationCategories]] and click "Try It Out" to explore this API online. ==== Get Common Location Categories ==== When requesting a reverse geocode, you can filter the types of locations the service will return to you, with one option being "Common". This API lists what types of categories fall under "Common". HTTP GET https://cloud.thinkgeo.com/api/v1/location/reverse-geocode/location-categories/common //**URL Parameters**//
No parameters.
Visit [[https://cloud.thinkgeo.com/help/#/ReverseGeocoding/GetReverseGeocodingCommonLocationCategoriesV1|GetLocationCategoriesInCommonGroup]] and click "Try It Out" to explore this API online. ===== Consume from Client Side===== ThinkGeo Cloud Reverse Geocoding does not allow anonymous users to access the API. Before working with these APIs, you will need to register with ThinkGeo Cloud and create your own clients. A new account comes with two clients: **NativeConfidential** and **JavaScript**. See more details at [[thinkgeo_cloud_client_keys_guideline|here]]. ThinkGeo Cloud provides standard RESTful APIs which can be consumed on any platform through any language. ThinkGeo also offers two prepackaged API clients to make it easier to integrate into .NET and JavaScript applications. ==== SDK for .NET ==== Our .NET SDK //ThinkGeo Cloud Client// makes it easy to consume all of the ThinkGeo Cloud services in your applications. It's available on [[https://www.nuget.org/packages/ThinkGeo.Cloud.Client|NuGet]]. IntelliSense hints will help you get started, and you can also refer to the [[thinkgeo_cloud_.net_client_apis|ThinkGeo Cloud Client API list]] for details. At the NuGet Package Manager terminal, you can install this package by running the command: ''Install-Package ThinkGeo.Cloud.Client -Version VERSION_TO_BE_INSTALLED''. You can also check out ThinkGeo on GitHub for [[https://github.com/ThinkGeo/ThinkGeoCloudReverseGeocodingSample-ForWpf|a sample project]] to get you started. === API Documentation === * [[api/thinkgeo.cloud.reversegeocodingclient|ThinkGeo.Cloud.ReverseGeocodingClient]]
This documentation convers the ThinkGeo.Cloud.ReverseGeocodingClient class. It contains all of the members such as Constructors, Methods, Properties and Events.
==== SDK for JavaScript ==== The SDK for JavaScript enables developers to directly access ThinkGeo Cloud services from JavaScript code running in brower. This SDK can be found at [[https://www.npmjs.com/package/thinkgeocloudclient-js|thinkgeocloudclient-js]]. The [[https://cloudclientsamples.thinkgeo.com/#Reverse-Geocoding|ReverseGeocoding]] sample shows how to work with this SDK. ===== Samples ===== Online Sample: * [[https://samples.thinkgeo.com/cloud/#FindNearbyPlaces|ThinkGeo Cloud Geocoding Online Sample]] Desktop Sample: * [[https://github.com/ThinkGeo/ThinkGeoCloudGeocodingSample-ForWpf|ThinkGeo Cloud Geocoding Sample for Wpf]] for [[map_suite_desktop_for_wpf|Map Suite Desktop For WPF]] Web Sample: Coming soon Mobile Sample: Coming soon ===== Related Links ===== * [[thinkgeo_cloud_geocoding|ThinkGeo Cloud Geocoding]] * [[thinkgeo_cloud_maps_wms|ThinkGeo Cloud Maps WMS]] * [[thinkgeo_cloud_maps_vector_tiles|ThinkGeo Cloud Maps Vector Tiles]] * [[thinkgeo_cloud_maps_raster_tiles|ThinkGeo Cloud Maps Raster Tiles]] * [[thinkgeo_cloud_elevation|ThinkGeo Cloud Elevation]] * [[thinkgeo_cloud_projection|ThinkGeo Cloud Projection]] * [[thinkgeo_cloud_colors|ThinkGeo Cloud Colors]] * [[thinkgeo_cloud_timezone|ThinkGeo Cloud Time Zones]]