/// <summary> /// Reverse Geocoding /// </summary> /// <returns> json/xml object </returns> public void ReverseGeocoding() { // Create the manager with the api key var route4Me = new Route4MeManager(ActualApiKey); var geoParams = new GeocodingParameters { Addresses = "42.35863,-71.05670", Format = "json" }; // Run the query string result = route4Me.Geocoding(geoParams, out string errorString); PrintExampleGeocodings(result, GeocodingPrintOption.Geocodings, errorString); }
/// <summary> /// Forward Geocoding /// </summary> /// <returns> json/xml object </returns> public void GeocodingForward(GeocodingParameters geoParams = null) { // Create the manager with the api key var route4Me = new Route4MeManager(ActualApiKey); if (geoParams == null) { geoParams = new GeocodingParameters() { Addresses = "Los Angeles International Airport, CA||3495 Purdue St, Cuyahoga Falls, OH 44221", Format = "json" }; } //Run the query string result = route4Me.Geocoding(geoParams, out string errorString); PrintExampleGeocodings(result, GeocodingPrintOption.Geocodings, errorString); }
/// <summary> /// Forward Geocoding /// </summary> /// <returns> xml object </returns> public void GeocodingForward(GeocodingParameters geoParams) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); //Run the query string errorString = ""; string result = route4Me.Geocoding(geoParams, out errorString); Console.WriteLine(""); if (result != null) { Console.WriteLine("GeocodingForward executed successfully"); } else { Console.WriteLine("GeocodingForward error: {0}", errorString); } }
/// <summary> /// Forward Geocoding /// </summary> /// <returns> xml object </returns> public void GeocodingForward(GeocodingParameters geoParams) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); //Run the query string errorString = ""; string result = route4Me.Geocoding(geoParams, out errorString); Console.WriteLine(""); if (result != null) { Console.WriteLine("GeocodingForward executed successfully"); } else { Console.WriteLine("GeocodingForward error: {0}", errorString); } }
/// <summary> /// Reverse Geocoding /// </summary> /// <returns> xml object </returns> public void ReverseGeocoding() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); GeocodingParameters geoParams = new GeocodingParameters { Addresses = "42.35863,-71.05670" }; // Run the query string errorString = ""; string result = route4Me.Geocoding(geoParams, out errorString); Console.WriteLine(""); if (result != null) { Console.WriteLine("ReverseGeocoding executed successfully"); } else { Console.WriteLine("ReverseGeocoding error: {0}", errorString); } }
/// <summary> /// Reverse Geocoding /// </summary> /// <returns> xml object </returns> public void ReverseGeocoding() { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); GeocodingParameters geoParams = new GeocodingParameters { Addresses = "42.35863,-71.05670" }; // Run the query string errorString = ""; string result = route4Me.Geocoding(geoParams, out errorString); Console.WriteLine(""); if (result != null) { Console.WriteLine("ReverseGeocoding executed successfully"); } else { Console.WriteLine("ReverseGeocoding error: {0}", errorString); } }