DEPRECATED

The v1 endpoints have been deprecated and will be removed after 1H 2014. Please use the current version instead.

Daily places

Required scope: location

Get daily places for user. See Daily summary API for details about the format of the time parameters. Note that the places API has a max range of 7 days in one query.

GET /user/places/daily/<date>

GET /user/places/daily/<week>

GET /user/places/daily?from=<from>&to=<to>

GET /user/places/daily?pastDays=<pastDays>

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": "20121212T000000Z",
                "endTime": "20121212T071430Z",
                "place": {
                    "id": 1,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                }
            },
            {
                "type": "place",
                "startTime": "20121212T074617Z",
                "endTime": "20121212T100051Z",
                "place": {
                    "id": 2,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                }
            },
            {
                "type": "place",
                "startTime": "20121212T100715Z",
                "endTime": "20121212T110530Z",
                "place": {
                    "id": 4,
                    "name": "test",
                    "type": "foursquare",
                    "foursquareId": "4df0fdb17d8ba370a011d24c",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                }
            },
            {
                "type": "place",
                "startTime": "20121212T111129Z",
                "endTime": "20121212T153638Z",
                "place": {
                    "id": 2,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                }
            },
            {
                "type": "place",
                "startTime": "20121212T160744Z",
                "endTime": "20121212T232730Z",
                "place": {
                    "id": 1,
                    "type": "unknown",
                    "location": {
                        "lat": 55.55555,
                        "lon": 33.33333
                    }
                }
            }
        ]
    },
    {
        "date": "20121213",
        "segments": null
    }
]

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