Skip to content

DLV - maxAge usage and lastLocationTime conflicts #324

Description

@james-emerson

According to r1.2+ YAML
maxAge=0 means a fresh calculation is requested by the client. If the system is not able to provide the fresh location, an error 422 with code LOCATION_VERIFICATION.UNABLE_TO_FULFILL_MAX_AGE is sent back.

maxAge=0 was implemented to address an issue as described in Issue #184:
Since 'maxAge' has a minimum value of 60 secs, using 'maxAge' is not a good way for a client to ask for such "real time" location verification

Since maxAge=0 was implemented, there is no way to ensure a fresh record with 'maxAge=1,5,10,100,etc'
Requests that include maxAge=1,5,10,100,etc will show an incorrect lastLocationTime making maxAge=1,5,10,100,etc useless.

minimum: 60 was removed since r1.2+ YAML

Since minimum: 60 is removed then it would appear that maxAge=0 is no longer needed.

If maxAge=0 is no longer required/useful because minimum: 60 is removed then:

  • maxAge=0 should be removed from the spec.

If maxAge=0 still has a valid use case, to ensure 'real-time':

  • An additional request parameter should be added - nocache or similar - so that maxAge=1,5,10,100,etc & lastLocationTime can become usable again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions