refactor geocoding to service for internal use + return addressdto
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-02 15:11:10 +01:00
parent 0437117d9e
commit 12aed5ef26
3 changed files with 80 additions and 8 deletions
@@ -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;
}
}