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

Commit a2aee3d

Browse files
authored
rm utils
1 parent 1c56f1c commit a2aee3d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/lib/geo.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as T from './type'
2-
import { url as Uurl } from '@nexys/utils'
32

43
const addressToString = (a:Partial<T.Address>) :string=> [a.street, a.postalcode, a.city, a.county, a.state, a.country]
54
.map(x => x ? x : '')
@@ -37,6 +36,8 @@ export const mapFromLatLon = (lat: string, lon: string, zoomLevel: number, apiKe
3736
output: 'embed',
3837
key: apiKey
3938
}
39+
40+
const params:string = Object.entries(cs).map(([k,v]) => k + '=' + encodeURIComponent(v)).join('&');
4041

41-
return'https://maps.google.com/maps?' + Uurl.paramsToString(cs)
42-
}
42+
return'https://maps.google.com/maps?' + params
43+
}

0 commit comments

Comments
 (0)