Constructs a point from its latitude and longitude information
@param latitude
@param longitude
@return
493690
public static final Geoshape point(final float latitude, final float longitude) {
        Preconditions.checkArgument(isValidCoordinate(latitude,longitude),"Invalid coordinate provided");
        return new Geoshape(new float[][]{ new float[]{latitude}, new float[]{longitude}});
    }
267763
public void setLocation(String latitude, String longitude) {
        this.latitude = new BigDecimal(latitude);
        this.longitude = new BigDecimal(longitude);
    }
560296
public Point toWgs84(Point point) {
        if (projection != null) {
            point = toWgs84.transform(point);
        }
        return point;
    }
459110
function parsePoint(result) {
  if (result.geometry) {
    if (result.geometry.location) {
      const {lng, lat} = result.geometry.location
      return helpers.point([lng, lat])
    }
  }
}
587979
public static double longitudeDistance(int meters, double latitude) {
        return (meters * 360) / (2 * Math.PI * EQUATORIAL_RADIUS * Math.cos(Math.toRadians(latitude)));
    }
556969
public LatLng toLatLng(Point point) {
        point = toWgs84(point);
        LatLng latLng = new LatLng(point.getY(), point.getX());
        return latLng;
    }
1293313
public static Point createPoint(double x, double y) throws SQLException {
        return createPoint(x, y, Coordinate.NULL_ORDINATE);
    }
912780
public Point getLocation() {
    JSONObject result =
        (JSONObject) driver.executeAtom(AndroidAtoms.GET_TOP_LEFT_COORDINATES, null, this);

    try {
      return new Point(result.getInt("x"), result.getInt("y"));
    } catch (JSONException e) {
      throw new SelendroidException(e);
    }
  }
179853
public GeoPoint toLatLng2(Point point) {
        point = toWgs84(point);
        GeoPoint latLng = new GeoPoint(point.getY(), point.getX());
        return latLng;
    }
1298394
public void setLatitude(final String latitude) {
    if(StringUtils.isBlank(latitude)) {
      return;
    }
    try {
      setLatitude(Double.parseDouble(latitude.trim()));
    }
    catch(Exception e) {
      // nothing is set
    }
  }
523554
private Point getPoint(double angle, int radius) {
        return new Point((int) (center.x + radius * Math.cos(angle)),
                (int) (center.y + radius * Math.sin(angle)));
    }
436267
public function setMap($latitude, $longitude)
    {
        $this->setObject('latitude', $latitude);
        $this->setObject('longitude', $longitude);

        return $this;
    }
712332
public static Location createLocation(final GeoCodingResult coords) throws FrameworkException {

		final PropertyMap props = new PropertyMap();
		double latitude         = coords.getLatitude();
		double longitude        = coords.getLongitude();
		String type             = Location.class.getSimpleName();

		props.put(AbstractNode.type,  type);
		props.put(StructrApp.key(Location.class, "latitude"),  latitude);
		props.put(StructrApp.key(Location.class, "longitude"), longitude);

		return StructrApp.getInstance().create(Location.class, props);
	}
453524
public function add($latitude, $longitude)
    {
        $this->latitude += $latitude;
        $this->longitude += $longitude;
        return $this;
    }
1039438
public static CellPosition of(final Point point) {
        ArgUtils.notNull(point, "point");
        return of(point.y, point.x);
    }
172493
public static LocationModel getLocationByCoordinates(Double latitude, Double longitude ){
        try {
            Geocoder geocoder;
            List<Address> addresses;
            geocoder = new Geocoder(QuickUtils.getContext());
            addresses = geocoder.getFromLocation(latitude, longitude, 1);

            LocationModel locationModel = new LocationModel();
            locationModel.latitude = latitude;
            locationModel.longitude = longitude;
            try{
                locationModel.address = addresses.get(0).getAddressLine(0);
            }catch(Exception ex){
                QuickUtils.log.e("empty address");
            }
            try{
                locationModel.city = addresses.get(0).getAddressLine(1);
            }catch(Exception ex){
                QuickUtils.log.e("empty city");
            }
            try{
                locationModel.country = addresses.get(0).getAddressLine(2);
            }catch(Exception ex){
                QuickUtils.log.e("empty country");
            }

            return locationModel;
        } catch (IOException e) {
            QuickUtils.log.e("empty location");
            return new LocationModel();
        }
    }
1342620
def _convert_point(cls, feature):
        """"""
        lon, lat = feature['geometry']['coordinates']
        popup = feature['properties'].get('name', '')
        return cls(lat, lon)