Supporting subscribers who have national presence #257
venkatramanm
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Supporting subscribers who have national presence
Area
Core Api
Status
Proposed Standard
Working Groups
Core-Proposal Admin
Submission Date
04/Aug/2021
Contributors
Table of Contents
Abstract
Subscribers who have national presence should be allowed to register with null city_id so that their keys etc don't need to be replicated/regenerated for each city.
Contents
Current Limitations
A bpp can onboard multiple providers operating from different provider-locations across the country.Forcing the bpp(subscriber) to indicate cities they operate from would be impractial as it depends on the locations of the providers being onboarded with a bpp.
Solution Approach
In other words, Subscribers will not be allowed to subscribe for multiple cities with the same subscriber idImplementation Note: if a provider location is registered as a lat,lng with a delivery radius, then one can precompute (min lat,min lng, max lat , max lng and presist in the registry . these bounds are upper bounds that kind of ensure that all point within these boundaries are within the radius specified. This would aid in fast lookups later.A new object attribute "location" may be passed input. (If this is passed, the city_id attribute is ignored is city_id can be passed inside the location object)
if queried for specific city_id, would need to return
if queried with location object representing a specific point (lat,lng) (user's location) then first find the city_id in which this location recides. Then return:
Impact Analysis
Registry Api new (/register_location)
Registry Api change (/lookup)
The suggested changes would be backwards compatible. To use the new features, there would need to be a code change by BAP participants (to pass the user's location) and BG (to use this user location information)
Acknowledgments
Copyright Notices
License
Attribution-NoDerivatives 4.0 International
Beta Was this translation helpful? Give feedback.
All reactions