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 4e565b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Geocoding.Google/GoogleGeocoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ 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 4e565b8

Please sign in to comment.