DLV - maxAge usage and lastLocationTime conflicts #338
Replies: 7 comments
-
|
My understanding is that using |
Beta Was this translation helpful? Give feedback.
-
|
One more point regarding the case when
|
Beta Was this translation helpful? Give feedback.
-
|
Please, @james-emerson, did this address your questions? Let us know if you need any further clarification. |
Beta Was this translation helpful? Give feedback.
-
|
@javier-carrocalabor thank you for the explanations. Regarding maxAge=0 I have another question about your response: If it is B then that makes maxAge=0 use problematic because I would always have to make 2 API requests to get the last known location: The preference from a customer perspective would be to always get a result back, even if the data is a bit old. To illustrate:
Then these two parts in the spec should be combined and reworded accordingly: |
Beta Was this translation helpful? Give feedback.
-
|
@javier-carrocalabor please confirm that this discussion also applies to Device Location Retrieval API |
Beta Was this translation helpful? Give feedback.
-
|
I can see your point. However, the spec was written understanding that, when the API client sets |
Beta Was this translation helpful? Give feedback.
-
|
@javier-carrocalabor thank you, this now addresses my questions. We have the information that we need to implement this API and expose the relevant options to our customers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
According to r1.2+ YAML
maxAge=0means 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=0was 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=0was 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,etcwill show an incorrect lastLocationTime makingmaxAge=1,5,10,100,etcuseless.minimum: 60was removed since r1.2+ YAMLSince
minimum: 60is removed then it would appear thatmaxAge=0is no longer needed.If
maxAge=0is no longer required/useful becauseminimum: 60is removed then:maxAge=0should be removed from the spec.If
maxAge=0still has a valid use case, to ensure 'real-time':nocacheor similar - so thatmaxAge=1,5,10,100,etc& lastLocationTime can become usable again.Beta Was this translation helpful? Give feedback.
All reactions