All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.frameworkset.elasticsearch.entity.geo.GeoPoint Maven / Gradle / Ivy

Go to download

bboss elasticsearch client with restful and java api without elasticsearch jar dependended.

There is a newer version: 7.3.2
Show newest version
package org.frameworkset.elasticsearch.entity.geo;
/**
 * Copyright 2008 biaoping.yin
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import java.io.Serializable; /** * https://www.elastic.co/guide/en/elasticsearch/reference/6.2/geo-shape.html * https://www.elastic.co/guide/en/elasticsearch/reference/6.2/query-dsl-geo-shape-query.html *

Description: in GeoJSON and WKT, and therefore Elasticsearch, the correct coordinate order is longitude, latitude (X, Y) within coordinate arrays

*

*

Copyright (c) 2018

* @Date 2019/1/7 18:08 * @author biaoping.yin * @version 1.0 */ public class GeoPoint implements Serializable { /** * 经度 */ private double lon; /** * 纬度 */ private double lat; /** * 纬度 */ public double getLat() { return lat; } public void setLat(double lat) { this.lat = lat; } /** * 经度 */ public double getLon() { return lon; } public void setLon(double lon) { this.lon = lon; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy