Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created May 30, 2010 04:37
Show Gist options
  • Save aaronpk/418784 to your computer and use it in GitHub Desktop.
Save aaronpk/418784 to your computer and use it in GitHub Desktop.
{
uuid: "550e8400-e29b-41d4-a716-446655440000",
date: "2010-04-30T16:50:00Z",
location: {
position: {
geojson: {
type: "Point",
coordinates: [-122.643, 45.512]
}
}
}
}
/* vs */
{
uuid: "550e8400-e29b-41d4-a716-446655440000",
date: "2010-04-30T16:50:00Z",
location: {
position: {
latitude: 45.5118,
longitude: -122.6433
}
}
}
/* or both */
{
uuid: "550e8400-e29b-41d4-a716-446655440000",
date: "2010-04-30T16:50:00Z",
location: {
position: {
latitude: 45.5118,
longitude: -122.6433,
geojson: {
type: "Point",
coordinates: [-122.643, 45.512]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment