globalToLocal abstract method
Method is used for converting the global geographic coordinates (latitude and longitude) to the local sublocation coordinates (x and y)
using the geographic binding of the sublocation
globalPoint point in WGS84 coordinates GlobalPoint
Returns point in metrics coordinates LocationPoint.
Example:
// Convert global coordinates to local coordinates
GlobalPoint globalPoint = GlobalPoint(55.7558, 37.6176); // Moscow coordinates
LocationPoint localPoint = sublocation.globalToLocal(globalPoint);
print('Global point ${globalPoint.getLat()}, ${globalPoint.getLon()} converted to local: ${localPoint.getX()}, ${localPoint.getY()}');
Implementation
LocationPoint globalToLocal(GlobalPoint globalPoint);