feat: add Railway-ready Jyotish chat product

This commit is contained in:
Jesse_Chen
2026-07-15 22:23:17 +08:00
parent 4a268c75f2
commit 4aa0105fa4
77 changed files with 15439 additions and 80 deletions
+9
View File
@@ -0,0 +1,9 @@
# China location data
`china-locations.json` is a compact runtime snapshot for the profile form. It contains only the country, province, city, district/county names, administrative codes, and centre coordinates required by the product; it intentionally does not include map polygons.
- Source: ChinaGeoJson `info.json`, which republishes DataV.GeoAtlas administrative metadata.
- Upstream license: MIT (ChinaGeoJson, Copyright 2024 ChuXiao).
- Refresh command: `npm run data:china`.
The source snapshot is useful for structured profile selection. It is not a substitute for an address-level geocoder: coordinate precision is administrative-area-centre precision.
File diff suppressed because one or more lines are too long
+32
View File
@@ -0,0 +1,32 @@
import source from "./china-locations.json";
export type LocationNode = {
code: string;
name: string;
center: [longitude: number, latitude: number];
};
export type CityNode = LocationNode & {
districts: LocationNode[];
};
export type ProvinceNode = LocationNode & {
cities: CityNode[];
};
export type ChinaLocationData = {
source: {
name: string;
url: string;
license: string;
generatedAt: string;
};
country: {
code: "CN";
name: string;
timezone: number;
provinces: ProvinceNode[];
};
};
export const chinaLocations = source as ChinaLocationData;