Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/service/impl/geocoder_v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ interface ReverseV3Params {
layers?: GeocoderV3Layer[];
}

const GEOCODER_V3_BASEURL = 'https://api.dev.entur.io';

const FOCUS_WEIGHT = parseFloat(process.env.GEOCODER_V3_FOCUS_WEIGHT || '0.7');
const RADIUS = parseInt(process.env.GEOCODER_V3_RADIUS || '60');

Expand Down Expand Up @@ -63,8 +61,6 @@ export default (): IGeocoderService_v3 => {
const result = await get<FeatureCollection<Point, LocationV3>>(
`/geocoder/v3/autocomplete?${queryString}`,
request,
{},
GEOCODER_V3_BASEURL,
);
return Result.ok(result.features);
} catch (error) {
Expand All @@ -89,8 +85,6 @@ export default (): IGeocoderService_v3 => {
const result = await get<FeatureCollection<Point, LocationV3>>(
`/geocoder/v3/reverse?${queryString}`,
request,
{},
GEOCODER_V3_BASEURL,
);
return Result.ok(result.features);
} catch (error) {
Expand Down
Loading