Skip to content

Commit

Permalink
fix: use nominatim api without trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Oct 3, 2023
1 parent 402e13e commit fae1c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/utils/read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parseDMS } from './parseDMS';
import { getMapZoom } from './zoom';

export const nominatimQ: string =
'https://nominatim.openstreetmap.org/search/?limit=1&format=json&q=';
'https://nominatim.openstreetmap.org/search?limit=1&format=json&q=';
const cidMatch: RegExp = /^0x[\da-f]+:0x[\da-f]+$/i;
const dmsMatch: RegExp = /^\d{1,2}°\d{1,2}'\d{1,2}\.\d"(N|S) \d{1,2}°\d{1,2}'\d{1,2}\.\d"(E|W)$/i;

Expand Down

0 comments on commit fae1c42

Please sign in to comment.