Skip to content

Commit

Permalink
Add footways from the meta synthetic layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Clark committed Feb 27, 2025
1 parent 166593d commit 0ddbc80
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
3 changes: 3 additions & 0 deletions data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,9 @@ en:
omdFootways:
label: Open Data Footways
description: Open footways data collected from various local government entities.
metaSyntheticFootways:
label: Synthetic Footways from Meta
description: Synthetic footways data collected from various local government entities.

rapid_poweruser:
beta: Beta Feature
Expand Down
22 changes: 19 additions & 3 deletions modules/services/MapWithAIService.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,20 @@ export class MapWithAIService extends AbstractSystem {
descriptionStringID: 'rapid_menu.omdFootways.description'
});


const metaSyntheticFootways = new RapidDataset(context, {
id: 'metaSyntheticFootways',
conflated: true,
service: 'mapwithai',
categories: new Set(['meta', 'footways', 'featured', 'preview']),
tags: new Set(['opendata']),
dataUsed: ['mapwithai', 'Meta Synthetic Footways'],
itemUrl: 'https://github.com/facebookmicrosites/Open-Mapping-At-Facebook/wiki/Footways-FAQ',
licenseUrl: 'https://github.com/facebookmicrosites/Open-Mapping-At-Facebook/wiki/Footways-FAQ#attribution-and-license',
labelStringID: 'rapid_menu.metaSyntheticFootways.label',
descriptionStringID: 'rapid_menu.metaSyntheticFootways.description'
});

const introGraph = new RapidDataset(context, {
id: 'rapid_intro_graph',
hidden: true,
Expand All @@ -141,7 +155,7 @@ export class MapWithAIService extends AbstractSystem {
label: 'Rapid Walkthrough'
});

return [fbRoads, msBuildings, omdFootways, introGraph];
return [fbRoads, msBuildings, omdFootways, metaSyntheticFootways, introGraph];
}


Expand Down Expand Up @@ -319,8 +333,10 @@ export class MapWithAIService extends AbstractSystem {

if (datasetID === 'fbRoads') {
qs.result_type = 'road_vector_xml';

} else if (datasetID === 'omdFootways') {
} else if (datasetID === 'metaSyntheticFootways' ) {
qs.result_type = 'extended_osc';
qs.sources = 'META_SYNTHETIC_FOOTWAYS';
} else if (datasetID === 'omdFootways' ) {
qs.result_type = 'extended_osc';
qs.sources = 'ML2OSM_META_FOOTWAYS';
} else if (datasetID === 'msBuildings') {
Expand Down

0 comments on commit 0ddbc80

Please sign in to comment.