@@ -5,6 +5,7 @@ import type { Location } from '../lib/location/types.js';
5
5
import type { Probe } from './types.js' ;
6
6
import { ProbesLocationFilter } from './probes-location-filter.js' ;
7
7
import { getMeasurementStore } from '../measurement/store.js' ;
8
+ import { normalizeFromPublicName , normalizeNetworkName } from '../lib/geoip/utils.js' ;
8
9
9
10
export class ProbeRouter {
10
11
private readonly probesFilter = new ProbesLocationFilter ( ) ;
@@ -110,17 +111,17 @@ export class ProbeRouter {
110
111
region : prevTest . probe . region ,
111
112
country : prevTest . probe . country ,
112
113
city : prevTest . probe . city ,
113
- normalizedCity : prevTest . probe . city . toLowerCase ( ) ,
114
+ normalizedCity : normalizeFromPublicName ( prevTest . probe . city ) ,
114
115
asn : prevTest . probe . asn ,
115
116
latitude : prevTest . probe . latitude ,
116
117
longitude : prevTest . probe . longitude ,
117
- state : prevTest . probe . state ?? undefined ,
118
+ state : prevTest . probe . state ,
118
119
network : prevTest . probe . network ,
119
- normalizedNetwork : prevTest . probe . network . toLowerCase ( ) ,
120
+ normalizedNetwork : normalizeNetworkName ( prevTest . probe . network ) ,
120
121
} ,
121
122
index : [ ] ,
122
123
resolvers : prevTest . probe . resolvers ,
123
- tags : prevTest . probe . tags . map ( tag => ( { value : tag , type : 'system ' } ) ) ,
124
+ tags : prevTest . probe . tags . map ( tag => ( { value : tag , type : 'offline ' } ) ) ,
124
125
stats : {
125
126
cpu : {
126
127
count : 0 ,
0 commit comments