+ return str(self.json())
+
+ def point_to_geo_location(self, point:Point):
+ """
+ A static function which converts a point in pixels into a geographical location
+ when the self is represented as Point(0,0)
+ @param point : The point to be converted
+ returns The converted GeoLocation object.
+ """
+ equatorialRadius = 6378137 # meters
+ new_lat = self.latitude + (point.y / equatorialRadius) * (180 / math.pi)
+ new_lon = self.longitude + (point.x / equatorialRadius) * (180 / math.pi) / math.cos(self.latitude * math.pi / 180)
+
+ geo_location: IGeoLocationData = {
+ "longitude": new_lon,
+ "latitude": new_lat,
+ "aboveMeanSeaLevel": self.aboveMeanSeaLevel
+ }
+ return GeoLocation(geo_location)
\ No newline at end of file