Azure IoT Solutions

Azure based IoT Hub solutions for devices with .net IoT Core SDK

Hybride Apps

Hybride Desktop & Smartphone Apps with IONIC, Sencha and SAPUI5

Android native

JAVA and XAMARIN based Android native Apps

IOS native

SWIFT, Objective C or XAMARIN based IOS native Apps

News

GMaps resolve lat long coordinates webservice C#

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 
using System.Net;
 
protected string getLaLo(string location)
{
string googlekey = "you have to register at GMaps to get the key";
string ort = location;
string url = "http://maps.google.com/maps/geo?q=" + ort + "&output=csv&key=" + googlekey;
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse webResponse;
webResponse = myReq.GetResponse() as HttpWebResponse;
if (webResponse != null)
{
	if (webResponse.StatusCode == HttpStatusCode.OK)
	{
		System.Threading.Thread.Sleep(100);
		StreamReader streamReader = new StreamReader(webResponse.GetResponseStream(), Encoding.ASCII);
		string responseString = streamReader.ReadToEnd();
		string[] arrayResponse = responseString.Split(',');
	if (arrayResponse.Length == 4)
	{
		Latitude = arrayResponse[2];
		Longitude = arrayResponse[3];
	}
	coordinates = Latitude + ";" + Longitude;
}
else
{
 
	}
	}
	return coordinates;
} 

Print Email

Strips B - main bottom

  • Simple Item 4

    dsfadsfafds f asdf as df asdf dsa fa f a sdf asd f sadf
  • Simple Item 3

  • Simple Item 2

  • Simple Item 1

  • 1