Skip to content

Commit d3c5f39

Browse files
authored
Support Maps Search API version 2025-01-01 (#49130)
* Support search API version 2025-01-01 * Push new test recorded files * Update changelog information
1 parent 10d7457 commit d3c5f39

24 files changed

+175
-306
lines changed

sdk/maps/Azure.Maps.Search/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
### Features Added
66

7-
### Breaking Changes
7+
- Support Search API `2025-01-01`. Support `StreetName` and `StreetNumber` in `Address` class and remove unused types
88

99
### Bugs Fixed
1010

11-
### Other Changes
11+
- Fix the issue where `Iso` is always `null` in the `GetReverseGeocoding` response
1212

1313
## 2.0.0-beta.4 (2024-09-30)
1414

sdk/maps/Azure.Maps.Search/api/Azure.Maps.Search.net8.0.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ public MapsSearchClient(Azure.Core.TokenCredential credential, string clientId,
2222
}
2323
public partial class MapsSearchClientOptions : Azure.Core.ClientOptions
2424
{
25-
public MapsSearchClientOptions(Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion version = Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion.V2_0, System.Uri endpoint = null, Azure.Maps.Search.SearchLanguage language = null) { }
25+
public MapsSearchClientOptions(Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion version = Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion.V2_1, System.Uri endpoint = null, Azure.Maps.Search.SearchLanguage language = null) { }
2626
public System.Uri Endpoint { get { throw null; } set { } }
2727
public Azure.Maps.Search.SearchLanguage SearchLanguage { get { throw null; } set { } }
2828
public enum ServiceVersion
2929
{
3030
V1_0 = 1,
3131
V2_0 = 2,
32+
V2_1 = 3,
3233
}
3334
}
3435
public partial class SearchLanguage
@@ -101,6 +102,8 @@ internal Address() { }
101102
public string Locality { get { throw null; } }
102103
public string Neighborhood { get { throw null; } }
103104
public string PostalCode { get { throw null; } }
105+
public string StreetName { get { throw null; } }
106+
public string StreetNumber { get { throw null; } }
104107
}
105108
public partial class AddressAdminDistrictsItem
106109
{
@@ -117,9 +120,7 @@ internal AddressCountryRegion() { }
117120
public partial class Boundary
118121
{
119122
internal Boundary() { }
120-
public string FeatureType { get { throw null; } }
121123
public Azure.Core.GeoJson.GeoCollection Geometry { get { throw null; } }
122-
public string Id { get { throw null; } }
123124
public Azure.Maps.Search.Models.BoundaryProperties Properties { get { throw null; } }
124125
}
125126
public partial class BoundaryProperties
@@ -356,7 +357,7 @@ internal Intersection() { }
356357
}
357358
public static partial class MapsSearchModelFactory
358359
{
359-
public static Azure.Maps.Search.Models.Address Address(string addressLine = null, string locality = null, string neighborhood = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.AddressAdminDistrictsItem> adminDistricts = null, string postalCode = null, Azure.Maps.Search.Models.AddressCountryRegion countryRegion = null, string formattedAddress = null, Azure.Maps.Search.Models.Intersection intersection = null) { throw null; }
360+
public static Azure.Maps.Search.Models.Address Address(string addressLine = null, string locality = null, string neighborhood = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.AddressAdminDistrictsItem> adminDistricts = null, string postalCode = null, Azure.Maps.Search.Models.AddressCountryRegion countryRegion = null, string formattedAddress = null, string streetName = null, string streetNumber = null, Azure.Maps.Search.Models.Intersection intersection = null) { throw null; }
360361
public static Azure.Maps.Search.Models.AddressAdminDistrictsItem AddressAdminDistrictsItem(string name = null, string shortName = null) { throw null; }
361362
public static Azure.Maps.Search.Models.AddressCountryRegion AddressCountryRegion(string iso = null, string name = null) { throw null; }
362363
public static Azure.Maps.Search.Models.BoundaryProperties BoundaryProperties(string name = null, string copyright = null, string copyrightUrl = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.GeometryCopyright> geometriesCopyright = null) { throw null; }

sdk/maps/Azure.Maps.Search/api/Azure.Maps.Search.netstandard2.0.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ public MapsSearchClient(Azure.Core.TokenCredential credential, string clientId,
2222
}
2323
public partial class MapsSearchClientOptions : Azure.Core.ClientOptions
2424
{
25-
public MapsSearchClientOptions(Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion version = Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion.V2_0, System.Uri endpoint = null, Azure.Maps.Search.SearchLanguage language = null) { }
25+
public MapsSearchClientOptions(Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion version = Azure.Maps.Search.MapsSearchClientOptions.ServiceVersion.V2_1, System.Uri endpoint = null, Azure.Maps.Search.SearchLanguage language = null) { }
2626
public System.Uri Endpoint { get { throw null; } set { } }
2727
public Azure.Maps.Search.SearchLanguage SearchLanguage { get { throw null; } set { } }
2828
public enum ServiceVersion
2929
{
3030
V1_0 = 1,
3131
V2_0 = 2,
32+
V2_1 = 3,
3233
}
3334
}
3435
public partial class SearchLanguage
@@ -101,6 +102,8 @@ internal Address() { }
101102
public string Locality { get { throw null; } }
102103
public string Neighborhood { get { throw null; } }
103104
public string PostalCode { get { throw null; } }
105+
public string StreetName { get { throw null; } }
106+
public string StreetNumber { get { throw null; } }
104107
}
105108
public partial class AddressAdminDistrictsItem
106109
{
@@ -117,9 +120,7 @@ internal AddressCountryRegion() { }
117120
public partial class Boundary
118121
{
119122
internal Boundary() { }
120-
public string FeatureType { get { throw null; } }
121123
public Azure.Core.GeoJson.GeoCollection Geometry { get { throw null; } }
122-
public string Id { get { throw null; } }
123124
public Azure.Maps.Search.Models.BoundaryProperties Properties { get { throw null; } }
124125
}
125126
public partial class BoundaryProperties
@@ -356,7 +357,7 @@ internal Intersection() { }
356357
}
357358
public static partial class MapsSearchModelFactory
358359
{
359-
public static Azure.Maps.Search.Models.Address Address(string addressLine = null, string locality = null, string neighborhood = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.AddressAdminDistrictsItem> adminDistricts = null, string postalCode = null, Azure.Maps.Search.Models.AddressCountryRegion countryRegion = null, string formattedAddress = null, Azure.Maps.Search.Models.Intersection intersection = null) { throw null; }
360+
public static Azure.Maps.Search.Models.Address Address(string addressLine = null, string locality = null, string neighborhood = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.AddressAdminDistrictsItem> adminDistricts = null, string postalCode = null, Azure.Maps.Search.Models.AddressCountryRegion countryRegion = null, string formattedAddress = null, string streetName = null, string streetNumber = null, Azure.Maps.Search.Models.Intersection intersection = null) { throw null; }
360361
public static Azure.Maps.Search.Models.AddressAdminDistrictsItem AddressAdminDistrictsItem(string name = null, string shortName = null) { throw null; }
361362
public static Azure.Maps.Search.Models.AddressCountryRegion AddressCountryRegion(string iso = null, string name = null) { throw null; }
362363
public static Azure.Maps.Search.Models.BoundaryProperties BoundaryProperties(string name = null, string copyright = null, string copyrightUrl = null, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.GeometryCopyright> geometriesCopyright = null) { throw null; }

sdk/maps/Azure.Maps.Search/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/maps/Azure.Maps.Search",
5-
"Tag": "net/maps/Azure.Maps.Search_8fbc409bfb"
5+
"Tag": "net/maps/Azure.Maps.Search_7355bc7ce8"
66
}

sdk/maps/Azure.Maps.Search/src/Generated/MapsSearchModelFactory.cs

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/maps/Azure.Maps.Search/src/Generated/Models/Address.Serialization.cs

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/maps/Azure.Maps.Search/src/Generated/Models/Address.cs

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/maps/Azure.Maps.Search/src/Generated/Models/AddressCountryRegion.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/maps/Azure.Maps.Search/src/Generated/Models/BoundaryInternal.Serialization.cs

Lines changed: 9 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)