Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Dec 19, 2023
1 parent 4bbed0a commit dfc200b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geocoding/geocoding.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class GeocodingService {
const data = await this.queryVworldAPI(page, geo);
console.log(data);
if (!rawdata.result) return [];
const name = data.result.featureCollection.features.properties.full_nm;
const name = data.result.featureCollection.features.properties[0].full_nm;
const names = rawdata.result.featureCollection.features.map(
(feat) => feat.properties.full_nm,
);
Expand Down

0 comments on commit dfc200b

Please sign in to comment.