department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
17 stars 2 forks source link

Spike: Rx Refill Tracking + Map #2938

Closed b-rocha closed 2 years ago

b-rocha commented 2 years ago

Description

Initial wireframes for Rx refill incorporate a tracking page that details tracking statuses, as well as a map view that illustrates where the package is located. Before finalizing designs, we want to investigate:

Acceptance Criteria

Any documentation should be written in a comment or word document, and included as part of this ticket.

Article: How I built awesome package tracking app with React Native and Node.js in record time

Design for reference

Screen Shot 2022-04-07 at 5.42.01 PM.png

Screen Shot 2022-04-07 at 5.41.57 PM.png

aherzberg commented 2 years ago

The RX service used for other Mobile RX endpoints also has a tracking endpoint. It does not include the shipment current status ("In transit", "delivered", etc), periodic updates (EX: "departed post office"), expected delivery date or a map. Given the number of missing fields, use of the USPS api will be necessary. Calling the USPS api can happen either on BE or FE. If done on FE, FE will need to call a separate mobile endpoint for just the tracking # then call the USPS api with that tracking #.

rarroyo23 commented 2 years ago

For the map view there are two libraries we can use https://github.com/react-native-maps/react-native-maps and https://github.com/rnmapbox/maps. Both maps use coordinates which we will have to use a geocode library to find the lat and long for an address. For react native maps we will need to use google geocode api which the cost are seen here https://developers.google.com/maps/documentation/geocoding/usage-and-billing. For mapbox we can use the mapbox geocode which the prices for the map and geocode api are seen here https://www.mapbox.com/pricing/#search.

For the package tracking we will need to have an account for the USPS Web Tools API Portal . https://www.usps.com/business/web-tools-apis/. If we want to track for all carriers we can use shipEngine prices are here https://www.shipengine.com/pricing/ and tracking api is here https://www.shipengine.com/docs/tracking/

For accessibility investigation is kind of blocked until we figure out what are we going to use and what not.