location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization

This commit is contained in:
Shibi Chakkaravarthy
2026-04-17 14:15:11 +05:30
parent b44abf9c88
commit 92769cfd38
19 changed files with 459 additions and 27 deletions
-15
View File
@@ -1,16 +1,5 @@
import { model, Schema, Types } from "mongoose";
const coordinatesSchema = new Schema({
latitude: {
type: Number,
required: true,
},
longitude: {
type: Number,
required: true,
},
});
const schema = new Schema({
name: {
type: String,
@@ -41,10 +30,6 @@ const schema = new Schema({
type: Date,
required: true,
},
coordinates: {
type: coordinatesSchema,
required: true,
},
type: {
type: String,
required: true,