I am working on a project where I have to create filled map charts based on the data client has provided. The data has latitude and longitude information. Based on the selected level (city or state or country) I have to get the boundary shapes of those locations and then filled them with appropriate color.
I have tried nominatim framework api. They are giving response in geoJson format which I am rendering in client side using leaftlet.js. As for a single country the size of geoJson is around 1-1.5 MB, I cannot use this approach.
I tried searching for any api service which can serve boundary data in geoJSON but still no luck. I have seen people suggesting to download and store shapefile(shp, shx), and convert them to geoJSON using QGIS manually. But as I am going to use it for a web-application and need to get/generate shapefiles on request from client, I don't know how this kind of approach will fit in it. Suggest me some tools and libraries which can be used to convert this data to a supported format for a web application.
I know some of the things is sounding naive, as I am very new to this field. Let me know if you need any clarity on anything I said about my project.
Please help me to find a better approach to solve this use-case. Thanks in advance.
أكثر...
I have tried nominatim framework api. They are giving response in geoJson format which I am rendering in client side using leaftlet.js. As for a single country the size of geoJson is around 1-1.5 MB, I cannot use this approach.
I tried searching for any api service which can serve boundary data in geoJSON but still no luck. I have seen people suggesting to download and store shapefile(shp, shx), and convert them to geoJSON using QGIS manually. But as I am going to use it for a web-application and need to get/generate shapefiles on request from client, I don't know how this kind of approach will fit in it. Suggest me some tools and libraries which can be used to convert this data to a supported format for a web application.
I know some of the things is sounding naive, as I am very new to this field. Let me know if you need any clarity on anything I said about my project.
Please help me to find a better approach to solve this use-case. Thanks in advance.
أكثر...