Daily places

Required scope: location

Get daily places for user. See Daily summary API for details about the format of the time parameters.

GET /user/places/daily/<date>[?updatedSince=<updatedSince>][&timeZone=<timeZone>]

GET /user/places/daily/<week>[?updatedSince=<updatedSince>][&timeZone=<timeZone>]

GET /user/places/daily/<month>[?updatedSince=<updatedSince>][&timeZone=<timeZone>]

GET /user/places/daily?from=<from>&to=<to>[&updatedSince=<updatedSince>][&timeZone=<timeZone>]

GET /user/places/daily?pastDays=<pastDays>[&updatedSince=<updatedSince>][&timeZone=<timeZone>]

Response

All the daily places API calls return a JSON array of dates and place segments. Note that activities within a place are not returned and neither is the idle calory burn.

[
    {
        "date": "20121212",
        "segments": [
            {
                "type": "place",
                "startTime": "20121212T000000+0200",
                "endTime": "20121212T071430+0200",
                "place": {
                    "id": 1,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                },
                "lastUpdate": "20130317T121143Z"
            },
            {
                "type": "place",
                "startTime": "20121212T074617+0200",
                "endTime": "20121212T100051+0200",
                "place": {
                    "id": 2,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                },
                "lastUpdate": "20130317T121143Z"
            },
            {
                "type": "place",
                "startTime": "20121212T100715+0200",
                "endTime": "20121212T110530+0200",
                "place": {
                    "id": 4,
                    "name": "test",
                    "type": "foursquare",
                    "foursquareId": "4df0fdb17d8ba370a011d24c",
                    "foursquareCategoryIds": ["4bf58dd8d48988d125941735"],
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                },
                "lastUpdate": "20130317T121143Z"
            },
            {
                "type": "place",
                "startTime": "20121212T111129+0200",
                "endTime": "20121212T153638+0200",
                "place": {
                    "id": 2,
                    "type": "facebook",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    },
                    "facebookPlaceId": "123456789"                    
                },
                "lastUpdate": "20130317T121143Z"
            },
            {
                "type": "place",
                "startTime": "20121212T160744+0200",
                "endTime": "20121212T232730+0200",
                "place": {
                    "id": 1,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                },
                "lastUpdate": "20130317T121143Z"
            }
        ],
        "lastUpdate": "20130317T121143Z"
    },
    {
        "date": "20121213",
        "segments": null
    }
]

See the Storyline API call for description about the returned JSON format.