You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to extract Lat/Lng coordinates from a given CellId, but I'm having a slight difference netween the returned values and the correct ones, and I can't understand why.
The original coordinates are
47.678956162876,-122.12871664749933
while the CellId is
6093384589483442176
What I get back is
47.72217122031298,-122.12705319813203
Here's a little snippet of my code:
var cellId = new S2CellId(CellId).ToLatLng();
return new Geopoint(new BasicGeoposition() {Latitude = cellId.LatDegrees, Longitude = cellId.LngDegrees})
Am I doing something wrong or is there an issue when converting back to Lat/Lng?
The text was updated successfully, but these errors were encountered:
I need to extract Lat/Lng coordinates from a given CellId, but I'm having a slight difference netween the returned values and the correct ones, and I can't understand why.
The original coordinates are
while the
CellId
isWhat I get back is
Here's a little snippet of my code:
Am I doing something wrong or is there an issue when converting back to Lat/Lng?
The text was updated successfully, but these errors were encountered: