refactor geocoding to service for internal use + return addressdto
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package SuMoC.backend.geocoding;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
public class AddressDTO {
|
||||
// Getters and setters
|
||||
private String houseNumber;
|
||||
private String road;
|
||||
private String suburb;
|
||||
private String cityDistrict;
|
||||
private String city;
|
||||
private String state;
|
||||
private String iso3166_2_lvl4;
|
||||
private String postcode;
|
||||
private String country;
|
||||
private String countryCode;
|
||||
|
||||
// Constructor with fields
|
||||
public AddressDTO(String houseNumber, String road, String suburb, String cityDistrict, String city, String state, String iso3166_2_lvl4, String postcode, String country, String countryCode) {
|
||||
this.houseNumber = houseNumber;
|
||||
this.road = road;
|
||||
this.suburb = suburb;
|
||||
this.cityDistrict = cityDistrict;
|
||||
this.city = city;
|
||||
this.state = state;
|
||||
this.iso3166_2_lvl4 = iso3166_2_lvl4;
|
||||
this.postcode = postcode;
|
||||
this.country = country;
|
||||
this.countryCode = countryCode;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user