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 am trying to get the level 10 cell ID for central Manchester.
Google says its coordinate is 53.479683, -2.242776. So i tried it like that: S2LatLng ll = S2LatLng.FromDegrees(53.479683, -2.242776);
But now if i try to get the ID like this: S2CellId.FromLatLng(ll).Id.ToString();
It returns the wrong cell ID and S2CellId.FromLatLng(ll).Level
is always level 30 without any chance of choosing it. How can i set the S2 cell level i like and get the right cell ID?
The text was updated successfully, but these errors were encountered:
I am trying to get the level 10 cell ID for central Manchester.
Google says its coordinate is 53.479683, -2.242776. So i tried it like that:
S2LatLng ll = S2LatLng.FromDegrees(53.479683, -2.242776);
But now if i try to get the ID like this:
S2CellId.FromLatLng(ll).Id.ToString();
It returns the wrong cell ID and
S2CellId.FromLatLng(ll).Level
is always level 30 without any chance of choosing it. How can i set the S2 cell level i like and get the right cell ID?
The text was updated successfully, but these errors were encountered: