@@ -35,9 +35,11 @@ export class OpenCageServer {
3535 }
3636 /**
3737 * Handles the geocoding request.
38+ *
3839 * @param args - The arguments for the request.
3940 * @returns The response containing the geocoded location information.
4041 */
42+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4143 async handleGeocode ( args ) {
4244 const { query, language = 'en' , countrycode, bounds, limit = 5 , } = args || { } ;
4345 try {
@@ -110,9 +112,11 @@ export class OpenCageServer {
110112 }
111113 /**
112114 * Handles the reverse geocoding request.
115+ *
113116 * @param args - The arguments for the request.
114117 * @returns The response containing the address and location information.
115118 */
119+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
116120 async handleReverseGeocode ( args ) {
117121 const { latitude, longitude, language = 'en' , no_annotations } = args ;
118122 const params = new URLSearchParams ( {
@@ -165,10 +169,11 @@ export class OpenCageServer {
165169 }
166170 /**
167171 * Handles the OpenCage API info request.
168- * @param args - The arguments for the request.
172+ * @param _args - The arguments for the request.
169173 * @returns The response containing API usage and rate limit information.
170174 */
171- async handleOpenCageInfo ( args ) {
175+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
176+ async handleOpenCageInfo ( _args ) {
172177 try {
173178 const params = new URLSearchParams ( {
174179 q : `0,0` ,
@@ -381,6 +386,7 @@ What would you like to help me with regarding geocoding?`,
381386}
382387// Start the server
383388const server = new OpenCageServer ( ) ;
389+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
384390server . run ( ) . catch ( ( error ) => {
385391 console . error ( 'Fatal error in main():' , error ) ;
386392 process . exit ( 1 ) ;
0 commit comments