it:ad:geojson:home

IT:AD:GeoJSON

Summary

Just as JSON is just a formalization of existing JavaScript object syntax, GeoJSON is a formalized syntax of JSON objects, optimized for storing geodata. All GeoJSON object are JSON objects, and all JSON objects are JavaScript objects.

<sxh javascript> var geodata = {

  "type": "FeatureCollection",
  "features": [
      {
          "type": "Feature",
          "geometry": {
              "type": "Point",
              "coordinates": [ 150.1282427, -24.471803 ]
          },
          "properties": {
              "type": "town"
          }
      }
  ]

}; </sxh>

Confusingly, longitude is always listed before latitude. Get used to thinking in terms of lon/lat instead of lat/lon.
  • /home/skysigal/public_html/data/pages/it/ad/geojson/home.txt
  • Last modified: 2023/07/07 00:45
  • by 127.0.0.1