-
Notifications
You must be signed in to change notification settings - Fork 0
/
playground.ts
35 lines (33 loc) · 1020 Bytes
/
playground.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {
generateDictionaryAndPlaceList,
generatePlaceIdArray,
} from "./generaters/app";
import {
generatePlaceMergeCypher,
generateRouteMergeCypher,
} from "./generaters/cypher";
import {
generatePlaceFeaturesGeoJson,
generateRouteFeaturesGeoJson,
} from "./generaters/geoJson";
import { generatePlaceIdEnum } from "./generaters/utility";
import { driver, readNeo4j } from "./neo4j";
import { getCoordinates } from "./utils";
(async () => {
// const serverInfo = await driver.getServerInfo();
// console.log(serverInfo);
// const graph = await readNeo4j(`MATCH (n:Place) RETURN n LIMIT 2;`);
// console.log(
// "graph",
// graph.map((g) => g.n.properties),
// );
// generateCoordinateList();
// generatePlaceIdEnum();
// generatePlaceIdArray();
// generateDictionaryAndPlaceList();
// generatePlaceMergeCypher();
// generateRouteMergeCypher();
generatePlaceFeaturesGeoJson();
// generateRouteFeaturesGeoJson();
// const data = await getCoordinates("Liverpool");
})();