From 42273c205ac3d7db935d35866744ae9f63c882f8 Mon Sep 17 00:00:00 2001 From: Alexander Skarupskiy Date: Tue, 26 Sep 2017 15:52:09 +0200 Subject: [PATCH] Add formatting for double coordinate values (#74) Since we can have value like "0.00006" -> in double representation it will be "6E-05" --- src/Geocoding.Google/GoogleGeocoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geocoding.Google/GoogleGeocoder.cs b/src/Geocoding.Google/GoogleGeocoder.cs index 0893fd0..0861f0b 100644 --- a/src/Geocoding.Google/GoogleGeocoder.cs +++ b/src/Geocoding.Google/GoogleGeocoder.cs @@ -154,7 +154,7 @@ private string BuildAddress(string street, string city, string state, string pos private string BuildGeolocation(double latitude, double longitude) { - return string.Format(CultureInfo.InvariantCulture, "{0},{1}", latitude, longitude); + return string.Format(CultureInfo.InvariantCulture, "{0:0.00000000},{1:0.00000000}", latitude, longitude); } private async Task> ProcessRequest(HttpRequestMessage request)