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

Geojson Data Indexing #88

Open
dhruv-1001 opened this issue Feb 6, 2024 · 6 comments
Open

Geojson Data Indexing #88

dhruv-1001 opened this issue Feb 6, 2024 · 6 comments

Comments

@dhruv-1001
Copy link
Collaborator

dhruv-1001 commented Feb 6, 2024

Description

This issue tracks progress on indexing of boundary locations. Once you setup the server, PARSED_MASTER_LOCATION_NAMES.json file gets added to /server/geojson-data directory. This files contains all of the administrative boundaries of India, from state level down to village level as such State -> District -> Sub-District -> Village.
Create a script, that uses this file, and then generates a JSON which indexes on what all data do we have available of state, district, sub-district & village. On top of that, design an API that read & returns from this generated JSON based on user query.

Implementation Details

1. Define the feature

  • Task: Design the indexing script & APIs
  • Details: Explain on how the indexing script would be working, and what will be the structure for API.
  • Approval: This needs to be reviewed and approved before proceeding with implementation.

2. Implementing the limiter

  • Task: Implementation of the script & APIs
  • Details: Script should be automatically be able to pickup new geojson-data files added, and create the index json accordingly. APIs should be optimised to return response with low latency. This index will be displayed on front-end application as an expandable tree, so implement the API accordingly.
  • Dependence: This step is contingent upon the approval of this feature

Expected Outcomes

  • Having a check, that ensures that no client tries to intentionally stress the server.

Product Name

GeoIP

Project Name

GeoIP

Organization Name

SamagraX

Domain

NA

Tech Skills Needed

Node JS

Category

Feature

Mentor(s)

@ChakshuGautam

Complexity

High

@swastik-akhil
Copy link

I would like to work on this issue.

@swastik-akhil
Copy link

swastik-akhil commented Apr 24, 2024

@ChakshuGautam @dhruv-1001
I encountered a issue can you please help me out with it.
I think the PARSED_MASTER_LOCATION_NAMES.json is not available there.
Screenshot :
Screenshot 2024-04-24 153904

@Savio629
Copy link

@swastik-akhil A alternative right now would be running it on github codespace.
Also would suggest to run this repo under linux environment

@swastik-akhil
Copy link

While running it in codespaces I encountered another issue.
Below is the image.
It keeps happening again and again. I have also a stable and fast internet connection then also this is happening.
Screenshot 2024-04-24 235308

@Savio629
Copy link

Try running it on gitpod

@swastik-akhil
Copy link

swastik-akhil commented Apr 25, 2024

I guess the issue is with the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants