Updated Radical scraper. Added town property to location resolve tool.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user