Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: eadhigam program added #331

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24,422 changes: 24,422 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ routes = [
),
canLoad: [AuthGuard]
},
{
path: 'eadhigam',
loadChildren: () =>
import('./views/eadhigam/pmposhan.module').then(
(module) => module.PmPoshanModule
),
canLoad: [AuthGuard]
}
],
},
];
Expand Down
6 changes: 5 additions & 1 deletion src/app/core/config/configMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {config as ncf } from '../../views/ncf/config/ncf_config';
import {config as quiz} from '../../views/ncert-quiz/config/quiz_config';
import{config as microImprovement} from '../../views/micro-improvements/config/microimprovements_config';
import {config as nipunBharatConfig } from '../../views/nipun-bharat/config/nipun_bharat_config';
import { config as eadhigamConfig } from '../../views/eadhigam/config/eadhigam_config'



Expand All @@ -33,7 +34,8 @@ export const configFiles = {
ncf:ncf,
quiz:quiz,
microImprovement:microImprovement,
nipunBharat:nipunBharatConfig
nipunBharat:nipunBharatConfig,
eadhigam:eadhigamConfig
};

export const programFolderNames = {
Expand All @@ -50,6 +52,7 @@ export const programFolderNames = {
ncf:'ncf',
quiz:'quiz',
microImprovement:'microImprovement',
eadhigam:'eadhigam'
}

export const stateProgramsFolderNames = {
Expand All @@ -66,4 +69,5 @@ export const stateProgramsFolderNames = {
ncf:'',
quiz:'',
microImprovement:'',
eadhigam:''
}
102 changes: 102 additions & 0 deletions src/app/views/eadhigam/config/district_lat_long.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
export const lat_long ={
"Bhiwani": {
"latitude": 28.791052,
"longitude": 76.143875
},
"Faridabad": {
"latitude": 28.427902,
"longitude": 77.329409
},
"Fatehabad": {
"latitude": 29.516385,
"longitude": 75.4548
},
"Panchkula": {
"latitude": 30.722619,
"longitude": 76.880191
},
"Rohtak": {
"latitude": 28.888214,
"longitude": 76.587935
},
"Karnal": {
"latitude": 29.692495,
"longitude": 76.985142
},
"Rewari": {
"latitude": 28.198138,
"longitude": 76.615433
},
"Panipat": {
"latitude": 29.387951,
"longitude": 76.968552
},
"Yamunanagar": {
"latitude": 30.30369,
"longitude": 77.307789
},
"Nuh Mewat": {
"latitude": 28.099046069577,
"longitude": 77.02292666409046
},
"Mahendragarh": {
"latitude": 28.045836,
"longitude": 76.11006
},
"Gurugram": {
"latitude": 28.466248,
"longitude": 77.028569
},
"Jind": {
"latitude": 29.318821,
"longitude": 76.313347
},
"Kaithal": {
"latitude": 29.804185,
"longitude": 76.399321
},
"Sirsa": {
"latitude": 29.531177,
"longitude": 75.026343
},
"Charkhi Dadri": {
"latitude": 28.597892777830666,
"longitude": 76.27070811025918
},
"Jhajjar": {
"latitude": 28.601349,
"longitude": 76.6536
},
"Hisar": {
"latitude": 29.151765,
"longitude": 75.725027
},
"Palwal": {
"latitude": 28.147539614049613,
"longitude": 77.32686067977056
},
"Sonipat": {
"latitude": 28.979449,
"longitude": 77.024728
},
"Kurukshetra": {
"latitude": 29.962444,
"longitude": 76.838151
},
"Ambala": {
"latitude": 30.376076,
"longitude": 76.78821
}
}

// export const getLatLong =(district:string)=>{
// return lat_long?.[district]
// }

export const getLatitude =(district:string)=>{
return lat_long?.[district]?.latitude
}

export const getLongitude =(district:string)=>{
return lat_long?.[district]?.longitude
}
Loading