List of usage examples for org.springframework.data.mongodb.core.geo GeoJsonPoint GeoJsonPoint
public GeoJsonPoint(double x, double y)
From source file:org.springframework.data.mongodb.core.geo.GeoJsonModuleUnitTests.java
/** * @see DATAMONGO-1181/* ww w. j av a2 s. c o m*/ */ @Test public void shouldDeserializeJsonPointCorrectly() throws JsonParseException, JsonMappingException, IOException { String json = "{ \"type\": \"Point\", \"coordinates\": [10.0, 20.0] }"; assertThat(mapper.readValue(json, GeoJsonPoint.class), is(new GeoJsonPoint(10D, 20D))); }