using System.Collections.Generic;
public double lat { get; set; }
public double lng { get; set; }
public Coordinates northeast { get; set; }
public Coordinates southwest { get; set; }
public Bounds bounds { get; set; }
public Geometry geometry { get; set; }
public List<Results> results { get; set; }
public static void Main()
string JsonAnswer = string.Empty;
string url = "http://maps.googleapis.com/maps/api/geocode/json?address=Винница&sensor=false&language=ru";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.AutomaticDecompression = DecompressionMethods.GZip;
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
JsonAnswer = reader.ReadToEnd();
Target target = JsonConvert.DeserializeObject<Target>(JsonAnswer);
var y0 = target.results[0].geometry.bounds.southwest.lat;
var x0 = target.results[0].geometry.bounds.southwest.lng;
var y1 = target.results[0].geometry.bounds.northeast.lat;
var x1 = target.results[0].geometry.bounds.northeast.lng;
int x = (int)Math.Round(1000000 * (x0 + x1) / 2);
int y = (int)Math.Round(1000000 * (y0 + y1) / 2);
int dx = (int)Math.Round(1000000 * (x1 - x0) / 2);
int dy = (int)Math.Round(1000000 * (y1 - y0) / 2);
Console.WriteLine(y.ToString()+"|"+ dy.ToString() + "|" + x.ToString() + "|" + dx.ToString());