1

I want to use geojson data in google map application like this (enter link description here).

The geojson data (see link enter link description here) is what I am looking for.

Do I need a (online) database server to run it?

Does mySQL or PostgreSQL work?

I know I can add geojson data (text) directly to the code, but it make the loading slow. Somebody mentioned MongoDB could handle geojson data, but I never used it.

2
  • Is the data sensitive or private? If no, have you considered hosting for free on GitHub?
    – danagerous
    Commented May 28, 2017 at 0:24
  • Just regular spatial data. I never used GitHub before. I am reading GitHub now. Thanks.
    – Carol Liu
    Commented May 28, 2017 at 4:38

2 Answers 2

2

If the data is not sensitive or private in nature and does not violate any organizational data policies it is possible to host GeoJSON on GitHub. See documentation. Simply commit the file as you would normally using a .geojson extension then use the URL for the GeoJSON in your application. eg. https://github.com/<username>/<project>/blob/master/<file>.geojson

0

Update:

Thanks@danagerous. GitHub worked great. My original data was shapefile. QGIS was used to convert shapefile into geojson (which needs coordinates in decimal degrees), which was eventually moved to GitHub. Loading geojson data from GitHub was perfect for google map application.

1
  • I'm glad it worked out. I will make my comment an answer and if you would kindly accept the answer that would be appreciated.
    – danagerous
    Commented May 29, 2017 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.