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

Add API that returns geoJSON for a query #31

Open
dhruv-1001 opened this issue Jan 29, 2024 · 1 comment
Open

Add API that returns geoJSON for a query #31

dhruv-1001 opened this issue Jan 29, 2024 · 1 comment
Labels
dev sprint march Devsprints for march dev sprints an event where open source programmers meet, and work together.

Comments

@dhruv-1001
Copy link
Collaborator

Description

This issue tracks the implementation of an API that return geoJSON for given query

Implementation Details

1. Define the API

  • Task: Design and define the API /getGeoJSON. The API definition needs to be added here - https://github.com/ChakshuGautam/geoip/blob/master/server/spec.yaml
  • Details: The API should be capable of accepting location name in query and should be able to perform search on multiple geolocation levels that is <district|state|subdistrct|city|ward> and should return geoJSON based on the search. This can have multiple hits for locations with similar names. There should be additional query parameters to filter out the data accordingly.
  • Approval: The API design needs to be reviewed and approved before proceeding with implementation.

2. Implement Server Logic

  • Task: Develop the server-side logic to handle the above defined API
  • Details: This involves integrating the approved OpenAPI Specification and ensuring the server correctly processes incoming requests and communicates with the geocoding service. The implementation will lie in this file - https://github.com/ChakshuGautam/geoip/blob/master/server/app.js
  • Dependence: This step is contingent upon the approval of the API design.

3. Add Tests

4. Update Documentation

  • Task: Update the main README file to include information about the new API
  • Details: The documentation should clearly explain how to use the feature, any limitations, and provide examples.

Resources

  • GeoJSONs for testing and implementation can be found here.

Expected Outcomes

  • A fully functional reverse getGeoJSON API integrated into our server.
  • Comprehensive tests ensuring the reliability of the feature.
  • Updated documentation for easy use and understanding of the new feature.

Product Name

GeoIP

Project Name

GeoIP

Organization Name

SamagraX

Domain

NA

Tech Skills Needed

Node JS

Category

Feature

Mentor(s)

@ChakshuGautam

Complexity

Low

@Sohelhere
Copy link

I am interested in this ✋ project but the thing is this is first time I am going to contribute could you plz guide me..

@Mr-Sunglasses Mr-Sunglasses added dev sprints an event where open source programmers meet, and work together. dev sprint march Devsprints for march labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev sprint march Devsprints for march dev sprints an event where open source programmers meet, and work together.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants