Skip to main content
Glama

Bangalore BMTC Mobility Connectivity Platform

by ajeetraina
Stop.js1.25 kB
const mongoose = require('mongoose'); const stopSchema = new mongoose.Schema( { stopId: { type: String, required: true, unique: true, }, stopName: { type: String, required: true, }, location: { type: { type: String, enum: ['Point'], default: 'Point', }, coordinates: { type: [Number], // [longitude, latitude] required: true, }, }, address: { type: String, }, area: { type: String, }, ward: { type: String, }, zone: { type: String, }, routesServed: [ { type: String, // Route IDs }, ], amenities: { hasShelter: { type: Boolean, default: false, }, hasSeating: { type: Boolean, default: false, }, hasLighting: { type: Boolean, default: false, }, hasDisplayBoard: { type: Boolean, default: false, }, }, isActive: { type: Boolean, default: true, }, }, { timestamps: true, } ); // Create geospatial index stopSchema.index({ location: '2dsphere' }); module.exports = mongoose.model('Stop', stopSchema);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajeetraina/bengaluru-bmtc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server