Replies the nearest bus stop to the given point.

@param point the point
@return the nearest bus stop or <code>null</code> if none was found.
195353
@Pure
	public final BusStop getNearestBusStop(GeoLocationPoint point) {
		return getNearestBusStop(point.getX(), point.getY());
	}
835207
@Pure
	public GeoLocationPoint getGeoPosition() {
		final Rectangle2d b = getBoundingBox();
		if (b == null) {
			return null;
		}
		return new GeoLocationPoint(b.getCenterX(), b.getCenterY());
	}
1115074
private Point parsePoint(String point) {
    int comma = point.indexOf(',');
    if (comma == -1)
      return null;

    float lat = Float.valueOf(point.substring(0, comma));
    float lng = Float.valueOf(point.substring(comma + 1));
    return spatialctx.makePoint(lng, lat);
  }
269956
public void addPoint(Point p) {
		if (p == null) throw new NullPointerException();
		points.add(new Point(p));
		repaint();
	}
131898
@Pure
	<CT extends RoadConnection> CT getEndPoint(Class<CT> connectionClass) {
		final StandardRoadConnection connection = this.lastConnection;
		if (connection == null) {
			return null;
		}
		if (connectionClass.isAssignableFrom(StandardRoadConnection.class)) {
			return connectionClass.cast(connection);
		}
		if (connectionClass.isAssignableFrom(RoadConnectionWithArrivalSegment.class)) {
			return connectionClass.cast(new RoadConnectionWithArrivalSegment(connection, this, false));
		}
		throw new IllegalArgumentException("unsupported RoadConnection class");  //$NON-NLS-1$
	}
298991
@Override
	@Pure
	public double getDistance(Point2D<?, ?> point) {
		double mind = Double.MAX_VALUE;
		for (final Point2d p : points()) {
			final double d = p.getDistance(point);
			if (d < mind) {
				mind = d;
			}
		}
		return mind;
	}
82080
public static boolean isPointInBoundingBox(Point point,
			BoundingBox boundingBox, double maxLongitude) {
		BoundingBox pointBoundingbox = new BoundingBox(point.getX(),
				point.getY(), point.getX(), point.getY());
		BoundingBox overlap = overlap(boundingBox, pointBoundingbox,
				maxLongitude, true);
		return overlap != null;
	}
409668
@Override
	public Point getPoint(int index) {
		if (index < 0 || index >= m_pointCount)
			throw new IndexOutOfBoundsException();

		_verifyAllStreams();

		Point outPoint = new Point();
		outPoint.assignVertexDescription(m_description);
		if (outPoint.isEmpty())
			outPoint._setToDefault();

		for (int attributeIndex = 0; attributeIndex < m_description
				.getAttributeCount(); attributeIndex++) {
			int semantics = m_description.getSemantics(attributeIndex);
			for (int icomp = 0, ncomp = VertexDescription
					.getComponentCount(semantics); icomp < ncomp; icomp++) {
				double v = m_vertexAttributes[attributeIndex].readAsDbl(ncomp
						* index + icomp);
				outPoint.setAttribute(semantics, icomp, v);
			}
		}
		return outPoint;
	}
784055
private static Point getCursorLocation()
    {
        try
        {
            final PointerInfo a = MouseInfo.getPointerInfo();
            final java.awt.Point b = a.getLocation();
            return new Point((int) b.getX(), (int) b.getY());
        }
        catch (final HeadlessException exception)
        {
            Verbose.exception(exception);
            return new Point();
        }
    }
950322
function(point) {
        var node = this.createElementNS(this.namespaces.gpx, "trkpt");
        node.setAttribute("lon", point.x);
        node.setAttribute("lat", point.y);
        return node;
    }
837653
public Point getAnchorPoint(int width, int height) {
        return new Point((int) (relativeX * width + offsetX), (int) (relativeY * height + offsetY));
    }
669759
public Criteria within(Point location, @Nullable Distance distance) {
		Assert.notNull(location, "Location must not be null!");
		assertPositiveDistanceValue(distance);
		predicates.add(
				new Predicate(OperationKey.WITHIN, new Object[] { location, distance != null ? distance : new Distance(0) }));
		return this;
	}
1057167
@Pure
	public double distance(BusItineraryHalt halt) {
		assert halt != null;
		final GeoLocationPoint p = getGeoPosition();
		final GeoLocationPoint p2 = halt.getGeoPosition();
		if (p != null && p2 != null) {
			return Point2D.getDistancePointPoint(p.getX(), p.getY(), p2.getX(), p2.getY());
		}
		return Double.NaN;
	}
246622
@Pure
	public GeoLocationPoint getGeoPosition() {
		final Point2d p = getPosition2D();
		if (p != null) {
			return new GeoLocationPoint(p.getX(), p.getY());
		}
		return null;
	}
1036549
public static boolean isPointInBoundingBox(Point point,
			BoundingBox boundingBox) {
		BoundingBox pointBoundingbox = new BoundingBox(point.getX(),
				point.getY(), point.getX(), point.getY());
		return boundingBox.intersects(pointBoundingbox, true);
	}
1199897
public int getAligSeq(Point point) {


		int i1 = getSeqPos(0, point);


		Point t1 = getPanelPos(0,i1);

		if ( Math.abs(t1.x - point.x) <= DEFAULT_CHAR_SIZE &&
				Math.abs(t1.y-point.y) < DEFAULT_CHAR_SIZE ) {
			return 0;
		}

		int i2   = getSeqPos(1,point);
		Point t2 = getPanelPos(1,i2);

		if ( Math.abs(t2.x - point.x) < DEFAULT_CHAR_SIZE &&
				Math.abs(t2.y-point.y) < DEFAULT_CHAR_SIZE ) {
			return 1;
		}

		//System.out.println(" i1: " + i1 +" t1 : " + Math.abs(t1.x - point.x) + " " + Math.abs(t1.y-point.y));
		//System.out.println(i2);


		return -1;
	}
694212
public void setPoint(Point p) {
		points.clear();
		if (p!=null) {
			points.add(new Point(p));
		}
		repaint();
	}