Example #1
0
        public void GetSearchAddressReverseCrossStreet()
        {
            var am = new AzureMapsToolkit.AzureMapsServices(_KEY);

            var req = new SearchAddressReverseCrossStreetRequest
            {
                Query = "62.390132,17.305199"
            };

            var resp = am.GetSearchAddressReverseCrossStreet(req).Result;

            Assert.Null(resp.Error);

            Assert.Equal(1, resp.Result.Summary.NumResults);
        }
Example #2
0
        /// <summary>
        /// There may be times when you need to translate a coordinate (example: 37.786505, -122.3862) into a human understandable cross street. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public virtual async Task <Response <SearchAddressReverseCrossStreetResponse> > GetSearchAddressReverseCrossStreet(SearchAddressReverseCrossStreetRequest request)
        {
            var res = await ExecuteRequest <SearchAddressReverseCrossStreetResponse, SearchAddressReverseCrossStreetRequest>("https://atlas.microsoft.com/search/address/reverse/crossStreet/json", request);

            return(res);
        }