LockerProject/Locker — Issue #636: Feature Request: Pushable places!
Author: elsmorian
Created: 2012-01-26 20:48:23+00:00
State: open

Following from a conversation with Quartzjer, It would be very handy to be able to push a place directly into the places collection. Quartz mention this could be done using the push api, and have a generic push/X type that the places collection listens for?

A proposed format (heavily based on the current places query API):

_id - string - An auto-generated unique identifier for this place.
at - string - The date that this place was created.
lat - number - The latitude.
lng - number - The longitude.
me - boolean - Marked true if this place is something created by you, as opposed to your friends - i.e. is this my checkin or a friend's?.
network - string - The name of the network or source where this place record came from, e.g. myPlacePusher
path - boolean - Marked true if this place record is part of a path of places, such as a GPS breadcrumb path. For example, Google Latitude is a path, Foursquare is not.
title - string - The name of the location for this place (if available).

A few questions or debate points- does each entry need an id from the source, or is the _id enough? Whilst the idea I have in mind might not need it, is it worth having a data attribute, which can contain extra info depending on the source that might be useful?