use of joynr.vehicle.RadioStation in project joynr by bmwcarit.
the class RadioProviderBean method getLocationOfCurrentStation.
@Override
public GetLocationOfCurrentStationReturned getLocationOfCurrentStation() {
RadioStation currentStation = radioStationDatabase.getCurrentStation();
GetLocationOfCurrentStationReturned result = null;
if (currentStation != null) {
result = new GetLocationOfCurrentStationReturned(currentStation.getCountry(), geoLocationService.getPositionFor(currentStation.getCountry()));
}
return result;
}
Aggregations