Examples of GeoCircle


Examples of com.spatial4j.core.shape.impl.GeoCircle

      if (distance > 180) {
        // (it's debatable whether to error or not)
        //throw new InvalidShapeException("distance must be <= 180; got " + distance);
        distance = 180;
      }
      return new GeoCircle(point, distance, this);
    } else {
      return new CircleImpl(point, distance, this);
    }
  }
View Full Code Here

Examples of org.securegraph.type.GeoCircle

            if (property.getDataType() != PropertyType.GEO_LOCATION) {
                continue;
            }

            Iterable<Vertex> vertices = graph.query(authorizations).
                    has(property.getTitle(), GeoCompare.WITHIN, new GeoCircle(latitude, longitude, radius)).
                    vertices();
            for (Vertex vertex : vertices) {
                results.getVertices().add(ClientApiConverter.toClientApiVertex(vertex, workspaceId, authorizations));
            }
        }
View Full Code Here

Examples of org.securegraph.type.GeoCircle

                    return DATE_TIME_FORMAT.parse(valueStr);
                } catch (ParseException ex) {
                    return DATE_FORMAT.parse(valueStr);
                }
            case GEO_LOCATION:
                return new GeoCircle(
                        values.getDouble(index),
                        values.getDouble(index + 1),
                        values.getDouble(index + 2)
                );
            case CURRENCY:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.