Skip to content

Commit

Permalink
Add formatting for double coordinate values (#74)
Browse files Browse the repository at this point in the history
Since we can have value like "0.00006" -> in double representation it will be "6E-05"
  • Loading branch information
alvillain authored and chadly committed Sep 26, 2017
1 parent d224038 commit 42273c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geocoding.Google/GoogleGeocoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IEnumerable<GoogleAddress>> ProcessRequest(HttpRequestMessage request)
Expand Down

0 comments on commit 42273c2

Please sign in to comment.