Skip to content

[NMA-1110] (Explore Dash) Distance from user - #834

Merged
HashEngineering merged 37 commits into
feature-explore-dashfrom
feature-explore-distance
Dec 15, 2021
Merged

HashEngineering merged 37 commits into
feature-explore-dashfrom
feature-explore-distance

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented Dec 10, 2021

Copy link
Copy Markdown
Member

We want to show distance from user to a merchant/atm if location services are enabled.

Issue being fixed or feature implemented

Calculate distance for all items if location services are enabled and display it in UI.

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@Syn-McJ Syn-McJ self-assigned this Dec 10, 2021
Comment on lines +24 to +25
return !isO3Country.equals("usa", true) &&
!isO3Country.equals("mmr", true)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious about this list of non-metric countries. When I was in England, I noticed that they are still using miles on distance on roads, though most of their measurements were metric.

image
image
https://en.wikipedia.org/wiki/Road_speed_limits_in_the_United_Kingdom

Also, Liberia is noted as not using the metric system in some older articles.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I know of Britain's case - it seems to be very mixed there, officially metric but uses imperial a lot. I assumed it's acceptable to set any option for them as a default, but it seems to be that road distances are mostly imperial still. We can add them to this list until we see any complaints.
As for Liberia - yes, seems like it's also in the list of "special" countries that use imperial exclusively, I missed that. Will fix.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ClaudeHangui ClaudeHangui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright for me !

@HashEngineering
HashEngineering merged commit f8fca92 into feature-explore-dash Dec 15, 2021
@Syn-McJ
Syn-McJ deleted the feature-explore-distance branch December 23, 2021 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants