Skip to content

Commit

Permalink
reduce deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Apr 4, 2024
1 parent 6989d94 commit bc9d3fc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 709 deletions.
28 changes: 0 additions & 28 deletions app/api/stores/[geoid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,6 @@ const getIsochrone = async (geoid: string) => {
}
return isochorones[state]![geoid]
}

// const dataPath = path.join(process.cwd(), "public", "data");
// const storePath = path.join(dataPath, "___grocery_store_sales.parquet");

// const loadParquet = async (path:string) => {

// try {
// const t0 = performance.now();
// console.log('reading file')
// // const r = readFileSync(path);
// let reader = await ParquetReader.openFile(path);

// // create a new cursor
// let i =0
// let cursor = reader.getCursor();
// // read all records from the file and print them
// let record = null;
// while (record = await cursor.next() && i < 10) {
// i ++;
// console.log(record);
// }
// return null
// } catch (error) {
// console.log("Error reading file")
// console.error(error);
// return null;
// }
// }

export async function GET(request: Request, reqParams: ReqParams) {
const geoid = reqParams.params.geoid
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@
"@deck.gl/layers": "^8.9.34",
"@deck.gl/mapbox": "^8.9.34",
"@deck.gl/react": "^8.9.34",
"@dsnp/parquetjs": "^1.5.0",
"@duckdb/duckdb-wasm": "1.28.1-dev106.0",
"@loaders.gl/core": "^3.4.14",
"@loaders.gl/gis": "^4.1.0",
"@loaders.gl/parquet": "^3.4.14",
"@loaders.gl/polyfills": "^3.4.14",
"@loaders.gl/schema": "3.4.14",
"@mdx-js/loader": "^3.0.1",
Expand Down Expand Up @@ -80,7 +78,6 @@
"d3": "^7.8.5",
"d3-scale": "^4.0.2",
"deck.gl": "^8.9.34",
"duckdb": "^0.10.1",
"gray-matter": "^4.0.3",
"http-server": "^14.1.1",
"lodash": "^4.17.21",
Expand All @@ -93,7 +90,6 @@
"next-mdx-remote": "^4.4.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"papaparse": "^5.4.1",
"parquet-wasm": "0.5.0",
"pmtiles": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
Loading

0 comments on commit bc9d3fc

Please sign in to comment.