Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 56a2e1e

Browse files
authored
fix test
1 parent dfbdc50 commit 56a2e1e

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

src/lib/geo.test.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
import * as G from './geo'
22
import * as T from './type'
33

4-
test('latLonFromAddress', async () => {
5-
const e:T.Nominatim[] = [{"place_id":171457980,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"way","osm_id":371206578,"boundingbox":["46.3843884","46.3851206","6.214201","6.2152684"],"lat":"46.384754599999994","lon":"6.21473356357032","display_name":"7, Route de Crassier, Petit Eysins, Eysins, District de Nyon, Vaud, 1262, Switzerland","class":"building","type":"yes","importance":0.411}]
4+
test('latLonFromAddress', async () => {
5+
const e:T.Nominatim[] = [{
6+
"place_id":177086391,
7+
"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
8+
"osm_type":"way",
9+
"osm_id":371206578,
10+
"boundingbox":["46.3843884","46.3851206","6.214201","6.2152684"],
11+
"lat":"46.384754599999994","lon":"6.21473356357032",
12+
"display_name":"7, Route de Crassier, Petit Eysins, Eysins, Grand Genève, District de Nyon, Vaud, 1262, Switzerland",
13+
"class":"building",
14+
"type":"yes",
15+
"importance":0.411
16+
}];
17+
618
const r = await G.latLonFromAddress('rte+de+crassier+7+eysins')
719
expect(r).toEqual(e)
820
})

0 commit comments

Comments
 (0)