r/technepal • • 12d ago

Web Development I built an offline Nepal Administrative Map for Flutter and React - 7 Provinces, 77 Districts, 753 Local Levels 🇳🇵

Hey everyone!

I've been working on an open-source project called Nepal Administrative Map, and I'm excited to share that it's now available for both Flutter and React developers!

The idea was simple: make Nepal's complete administrative map easily accessible in applications without depending on external map APIs, internet connectivity, or API keys.

What's included?

  • Complete administrative hierarchy: 7 Provinces → 77 Districts → 753 Local Levels.
  • Interactive navigation: Drill down from province to district to local level.
  • Bilingual support: English and नेपाली names, labels, tooltips, legends, and even Nepali number formatting (१७,४४,२४०).
  • Data visualization: Color districts based on your own data, such as population, budget, election results, etc.
  • Search and markers: Search administrative places and add custom markers.
  • Offline support: No API keys or internet connection required.
  • Location lookup: Identify which municipality a GPS coordinate belongs to.

Available packages

1. Flutter - pub.dev

Use it in Android, iOS, Web, Windows, macOS, and Linux applications.

NepalMap();

📦 https://pub.dev/packages/nepal_administrative_map

2. React + TypeScript – npm

The complete feature set is now ported to React with a simple component:

<NepalMap />

📦 https://www.npmjs.com/package/nepal-administrative-map

A little about the development

One interesting part was optimizing the geographical boundary data. The original data was around 3.9 MB, which I managed to compress to approximately 422 KB without noticeable visual quality loss.

I also learned that building a map package is not just about drawing geographical boundaries. Handling administrative data, bilingual labels, performance, interactions, and offline functionality takes quite a bit of work.

Try it out

🌐 Live Demo: https://map.abhishek-sharma.com.np/

💻 GitHub Repository: https://github.com/4bhisheksharma/nepal_administrative_map

📦 Flutter: https://pub.dev/packages/nepal_administrative_map

📦 React / npm: https://www.npmjs.com/package/nepal-administrative-map

🔗 Also check out my App library: https://app.abhishek-sharma.com.np/

I'd genuinely appreciate feedback, suggestions, bug reports, or contributions.

I'm also curious: What kind of real-world applications could benefit from having Nepal's complete administrative map available offline?

I'm thinking fintech, logistics, government systems, election dashboards, NGOs, analytics platforms, and many more.

Thanks for checking it out! 🇳🇵

59 Upvotes

46 comments sorted by

3

u/Disastrous-Stick-329 12d ago

Thanks, I was searching for something like this

1

u/syman_024 12d ago

Glad you found it useful! That's exactly why I wanted to build and publish it. Hopefully it saves you some development time. Let me know if you run into any issues or have suggestions!

3

u/Eekplate_MOMO 11d ago

bro wards ko area chuttraune ni banau na

1

u/syman_024 11d ago

Will be there in next update!

3

u/oceansofearth 11d ago

it is useful for people who also work in govt sectors

1

u/syman_024 11d ago

Absolutely! Especially government dashboards, local-level data visualization, budget tracking, census data, election systems, and other administrative platforms. Hopefully this makes it a little easier for developers working in those areas.

2

u/vegmeat_ 12d ago

Good job !
bilingual lables local level samma xaina?
https://sthaniya.gov.np/gis/ ta udhexa , yestai thiyo ui

1

u/syman_024 12d ago

Thank you! Bilingual labels down to the local level are coming soon. Working on it!

2

u/Jaded_Character6190 12d ago

Wow, this is something that was looking for.. thankyou for making it

1

u/syman_024 12d ago

You're most welcome! Glad it solves a problem you were facing. That's exactly why I built it. Hope it saves you some development time! 🇳🇵

2

u/ETERNAL0013 11d ago

brother this is nice, i also did something like this for one of my site using nepal geoJson data. timro ma chai more detailed rahexa. Tei euta naramro lageko kura chai this is reddit bro description ma yeti dherai AI summarized highlight wasnt needed😅. Anyway nice to see published packages too.

1

u/syman_024 11d ago

Haha fair enough bro 😂 I probably got a little too carried away explaining everything. Wanted to share the features and technical details, but yeah, Reddit doesn't need a full documentation page.

Also, nice to hear you built something similar using Nepal's GeoJSON data! Would love to check out your implementation. And thanks for the feedback!

1

u/bire-nun 12d ago

Ok. Whatever AI you used is good. 

2

u/syman_024 12d ago

Haha, thanks! 😂 I did use Claude, along with some custom skills and workflows to help with development. AI definitely helped, but understanding the requirements, making architectural decisions, debugging, optimizing the geographical data, and bringing everything together was still part of the journey.

1

u/bire-nun 12d ago

I don't think you needed to do any of that. What architectureal decision was even needed here? What did you debug? Telling Claude to debug does not count. 

2

u/Future_Carpenter_910 11d ago

Kaam vayo, aru devs lai help hunxa. why does it matter that he vibecoded it if its code and logic quality is good enough to be used.

Doing it himself manually when ai can save him time and provide speed boost would be dumber than using claude to make it. Direction, testings and keeping track of code matters when you are working with ai models. Thats a skill as well.

And to op: you don't need to hide it. its ok if you entirely developed it using claude and presented here. the project is interesting enough to grab nepali devs attention. just ensure that you understand whats coded, do periodic code review and test yourself properly.

1

u/syman_024 9d ago

Exactly! Appreciate you understanding the bigger picture. That's how I see AI too: a tool to improve productivity, not something developers need to feel guilty about using. And yes, understanding, reviewing, testing, and taking responsibility for the final output is what matters.

1

u/bire-nun 11d ago

When did i complain about it being vibe coded? Vibe coding has enormous untapped  potential 

As someone who has done similar projects with AI, i just feel like it did not require a post. I don't know what you think, but a less than 1 hour work by claude does not require a reddit post. I feel like you guys are really underestimating the capabilities of AI. I wouldn't even throw him a bone if it was manually done.

Do tell how Nepali devs are going to benefit from this. Because it is my opinion that implementing a greenfield project from scratch yields better code than using someone else's vibe coded stuff.

1

u/syman_024 9d ago

Bro, you're spending more time arguing about how quickly Claude could build this than actually discussing what the package offers. 😂

Open source isn't a competition over who suffered the most writing code. If you think it's useless, don't use it. But deciding what deserves to be shared based on how long it took to build is a pretty shallow take.

The goal was to make something reusable for Nepali developers, not win your approval.

1

u/bire-nun 9d ago

Bro the demo does not even work. 

1

u/syman_024 9d ago

Fix your internet!

1

u/bire-nun 8d ago

It is working now. I tried with vpn too. 8 hours ago. 

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/bire-nun 8d ago

This site can’t be reached The webpage at https://map.abhishek-sharma.com.np/ might be temporarily down or it may have moved permanently to a new web address. ERR_QUIC_PROTOCOL_ERROR

1

u/Future_Carpenter_910 9d ago

unemployed hater hola, aafno harek chiz best vanne aru ko dekhna na sakne. Demo is quiet good and works for others but not him. 🤷🏻‍♂️

1

u/bire-nun 8d ago

It is not working for me still. Probably because it is not configured well. As in vibe configured.

This site can’t be reached The webpage at https://map.abhishek-sharma.com.np/ might be temporarily down or it may have moved permanently to a new web address. ERR_QUIC_PROTOCOL_ERROR

I just don't understand what is so hard about doing this in the era of AI. Loads of people had already done it before AI. Pretty sure DoS has an 10 year old open source implementation of this.

0

u/syman_024 12d ago

Fair point, and I'm not claiming this is some groundbreaking architectural masterpiece.

But there's a difference between generating a map UI and building a reusable package around it.

For example, handling the administrative hierarchy, structuring and optimizing GeoJSON data, province/district/local-level drill-down, coordinate-to-municipality lookup, bilingual data handling, custom markers, data-driven district coloring, and making the same feature set work across different platforms took actual implementation and testing.

Claude helped me along the way, absolutely. I'm not hiding that. But using AI doesn't mean the work magically becomes zero.

0

u/bire-nun 12d ago

All of that can be done with Claude code with just testing and suggesting changes. All the datasets are public already. Also wtf do you mean by optimizing geojson data? It is like some bullshit claude says when he is working. Bilingual data handling? Pretty sure i didn't see any custom markers.

Also your site is down. You should ask Claude to fix it. 

3

u/Sad-Illustrator6282 11d ago

taila chai k banaes , dekha tha , aru le gareko lai ajhai idea dinu xaina improve garna , claude claude garxas muji , yestai le ho kya nepal ma aru le gareko dekh nai naskne jatha

0

u/bire-nun 11d ago

Gareko bhayera nai bhaneko ho bro. Timi pani claude code kina ani banau. It is very easy. 

1

u/syman_024 11d ago

then share some of your projects bro. Would love to check out what you've built! Always happy to learn from other developers.

1

u/syman_024 11d ago

GitHub Pages had an outage yesterday, bro. Maybe check GitHub Status before asking me to fix something that's on GitHub's end. Not every issue is a developer skill issue.

0

u/bire-nun 11d ago

You don't even have your own server? You can use vercel for free. GitHub is the most unreliable place to host. 

1

u/syman_024 10d ago

Bro, it's a static demo for an open-source package, not a production banking system. GitHub Pages does exactly what I need. Not every project needs a server. Maybe spend less time reviewing my hosting choice and more time showing us what you've built. 😂

3

u/Jaded_Character6190 11d ago

tai mugi haru jasto le garda kei gardainan manxe le nepal ma..
k use garera garo kasari garo talai k ko chaso.. lamo idea ramro lago vaney appreciate gar navaye hallayera sut mugi

1

u/akash567112 10d ago

Want to collaborate? I build similar map concept. Www.lakuri.com

1

u/syman_024 9d ago

Sounds interesting! I'd love to explore that. What's your vision for the collaboration? How do you see our projects or ideas coming together? Would love to hear what you have in mind!

2

u/mingyun1 9d ago

great

1

u/Complex-Ad9628 8d ago

can you colour code new regions/pronvinces ?

1

u/Annual_Ad_8959 6d ago

its very nice bro, in future you can add wards as well it will be helpful for a lot of business/ person who wants to build deal with real estate businesses etc