mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
Add initial region loading for supported systems
Expose an initialRegion field on the System GraphQL type so the app can display the correct campus area on first load instead of a zoomed-out default map view. Chapman University is configured with coordinates centered on campus. https://claude.ai/code/session_0162emnCi1KxW5FkTNn2ZrvH
This commit is contained in:
@@ -6,6 +6,7 @@ scalar DateTime
|
||||
type System {
|
||||
id: ID!
|
||||
name: String!
|
||||
initialRegion: Region
|
||||
routes: [Route!]
|
||||
route(id: ID): Route
|
||||
stops: [Stop!]
|
||||
@@ -16,6 +17,13 @@ type System {
|
||||
parkingSystem: ParkingSystem
|
||||
}
|
||||
|
||||
type Region {
|
||||
latitude: Float!
|
||||
longitude: Float!
|
||||
latitudeDelta: Float!
|
||||
longitudeDelta: Float!
|
||||
}
|
||||
|
||||
type ParkingSystem {
|
||||
systemId: ID!
|
||||
parkingStructures: [ParkingStructure!]
|
||||
|
||||
Reference in New Issue
Block a user