public LocationIndex prepareIndex() {
        return prepareIndex(EdgeFilter.ALL_EDGES);
    }
@Test
    public void testWayGeometry() {
        Graph g = createTestGraphWithWayGeometry();
        LocationIndex index = createIndexNoPrepare(g, 500000).prepareIndex();
        assertEquals(3, findClosestEdge(index, 0, 0));
        assertEquals(3, findClosestEdge(index, 0, 0.1));
        assertEquals(3, findClosestEdge(index, 0.1, 0.1));
        assertEquals(1, findClosestNode(index, -0.5, -0.5));
    }