Skip to content

Commit 09a96c4

Browse files
authored
fix: update ReGeocoderResult type (#389)
1 parent d8ab78a commit 09a96c4

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

packages/types/src/control.d.ts

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ declare namespace AMap {
9797
*/
9898
interface ReGeocoderResult {
9999
info: string
100-
status: string
101-
count: string
102100
geocode: {
103101
formatted_address: string
104102
country: string
@@ -123,40 +121,26 @@ declare namespace AMap {
123121
*/
124122
interface ReverseGeocodeResult {
125123
info: string
126-
infocode: string
127-
status: string
128124
regeocode: {
129-
formatted_address: string
125+
formattedAddress: string
130126
addressComponent: {
131-
city: any[]
132-
province: string
133127
adcode: string
128+
building: string
129+
buildingType: string
130+
businessAreas: Array<BusinessArea>
131+
city: string
132+
citycode: string
134133
district: string
135-
towncode: string
136-
streetNumber: {
137-
number: string
138-
location: string
139-
direction: string
140-
distance: string
141-
street: string
142-
}
143-
country: string
134+
neighborhood: string
135+
neighborhoodType: string
136+
province: string
137+
street: string
138+
streetNumber: string
144139
township: string
145-
businessAreas: {
146-
location: string
147-
name: string
148-
id: string
149-
}[]
150-
building: {
151-
name: any[]
152-
type: any[]
153-
}
154-
neighborhood: {
155-
name: any[]
156-
type: any[]
157-
}
158-
citycode: string
159140
}
141+
crosses: Array<any>
142+
pois: Array<any>
143+
roads: Array<any>
160144
}
161145
}
162146

0 commit comments

Comments
 (0)