location radius search
This commit is contained in:
@@ -59,7 +59,9 @@ export class GeoService {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return state ? result.filter(e => e.state_code.toLowerCase() === state.toLowerCase()) : result;
|
||||
}
|
||||
getCityWithCoords(state: string, city: string): City {
|
||||
return this.geo.states.find(s => s.state_code === state).cities.find(c => c.name === city);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user