Updated Radical scraper. Added town property to location resolve tool.

This commit is contained in:
DebaucheryLibrarian
2023-08-14 01:54:17 +02:00
parent ccac1f96dd
commit 1ed47c3173
3 changed files with 112 additions and 24 deletions

View File

@@ -56,7 +56,7 @@ async function resolvePlace(query) {
const place = {};
if (item.class === 'place' || item.class === 'boundary') {
const location = rawPlace[item.type] || rawPlace.city || rawPlace.place;
const location = rawPlace[item.type] || rawPlace.city || rawPlace.place || rawPlace.town;
if (location) {
place.place = location;