Skip to content

Commit 158f785

Browse files
committed
added dataset.json.example
1 parent bf24bdb commit 158f785

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

PathMapper/PathMapper.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
<FileType>Document</FileType>
155155
</CopyFileToFolders>
156156
<None Include="..\README.md" />
157+
<None Include="dataset.json.example" />
157158
<None Include="packages.config" />
158159
</ItemGroup>
159160
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

PathMapper/PathMapper.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<ItemGroup>
3434
<None Include="packages.config" />
3535
<None Include="..\README.md" />
36+
<None Include="dataset.json.example">
37+
<Filter>Resource Files</Filter>
38+
</None>
3639
</ItemGroup>
3740
<ItemGroup>
3841
<CopyFileToFolders Include="dataset.json">

PathMapper/dataset.json.example

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{ // NOTE: Please do remove the comments before running.
2+
"cities": [
3+
"CITY A", // list of all the cities to include in dataset (vertex)
4+
"CITY B",
5+
"CITY C"
6+
],
7+
"links": [
8+
{
9+
"city_1": "CITY A", // a link between two cities (edge)
10+
"city_2": "CITY B",
11+
"time": 38, // time in minutes
12+
"distance": 18
13+
},
14+
{
15+
"city_1": "CITY B",
16+
"city_2": "CITY C",
17+
"time": 60,
18+
"distance": 42
19+
}
20+
],
21+
"towns": [
22+
{
23+
"city": "CITY B",
24+
"towns": [
25+
"TOWN 1", // list of all towns for a particular city (vertex)
26+
"TOWN 2"
27+
],
28+
"links": [
29+
{
30+
"town_1": "TOWN 1", // a link between two towns of a city (edge)
31+
"town_2": "TOWN 2",
32+
"time": 14, // time in minutes
33+
"distance": 3.5
34+
}
35+
]
36+
}
37+
]
38+
}

0 commit comments

Comments
 (0)