Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 42273c2

Browse files
alvillainchadly
authored andcommitted
Add formatting for double coordinate values (#74)
Since we can have value like "0.00006" -> in double representation it will be "6E-05"
1 parent d224038 commit 42273c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Geocoding.Google/GoogleGeocoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private string BuildAddress(string street, string city, string state, string pos
154154

155155
private string BuildGeolocation(double latitude, double longitude)
156156
{
157-
return string.Format(CultureInfo.InvariantCulture, "{0},{1}", latitude, longitude);
157+
return string.Format(CultureInfo.InvariantCulture, "{0:0.00000000},{1:0.00000000}", latitude, longitude);
158158
}
159159

160160
private async Task<IEnumerable<GoogleAddress>> ProcessRequest(HttpRequestMessage request)

0 commit comments

Comments
 (0)