[wp-hackers] Geodata storage

Jason Tremblay jason.tremblay at gmail.com
Sat Jun 5 17:40:18 UTC 2010


Love the idea of storing geodata .  I thought the GeoJSON format (
http://geojson.org/geojson-spec.html) was worth throwing into the
discussion.  It can store simple point data, as described, but would have
the flexibility to store more complex geo data as well if a plugin wanted.

Would it be a good idea to store a post's geodata as GeoJSON in a single
custom field, and have the methods proposed in the codex (
http://codex.wordpress.org/Geodata) retrieve parts of that data structure?

Here's an example of GeoJSON:

{ "type": "FeatureCollection",
  "features": [
    { "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [102.0, 0.5]
      },
      "properties": {
        "public": "1",
        "address": "Pasadena, CA"
      }
    },
  ]
}


More information about the wp-hackers mailing list