The RetryCount sentinel that marks an address as settled: geocoding ran, produced no result,
and will produce no result again until the address itself changes ("Conference Room B").
Encoded in RetryCount rather than Status because GeocodeStatus is only
success | failed | pending — there is no "not geocodable" member — so the outcome has to
live somewhere, and a count far above any real retry limit is what the code chose.
The consequence is that every reader has to know the convention. The retry job does
(Status='failed' AND RetryCount < maxRetries), which is why it stops re-attempting.
IsSettledGeoCode exists so nobody has to rediscover it.
The
RetryCountsentinel that marks an address as settled: geocoding ran, produced no result, and will produce no result again until the address itself changes ("Conference Room B").Encoded in
RetryCountrather thanStatusbecauseGeocodeStatusis onlysuccess | failed | pending— there is no "not geocodable" member — so the outcome has to live somewhere, and a count far above any real retry limit is what the code chose.The consequence is that every reader has to know the convention. The retry job does (
Status='failed' AND RetryCount < maxRetries), which is why it stops re-attempting. IsSettledGeoCode exists so nobody has to rediscover it.