Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question/enhancement] Country code in ISO format #63

Closed
omartinma opened this issue Jun 17, 2024 · 6 comments
Closed

[question/enhancement] Country code in ISO format #63

omartinma opened this issue Jun 17, 2024 · 6 comments

Comments

@omartinma
Copy link

Hi,

Currently, I'm working on getting the nationality for a scanned passport and I would like to know if possible to get those in ISO format.

This would be beneficial since the result String would not be linked to any language, and ISO code is universally used for any API.

Also trying with a USA passport it gives me the wrong result on the nationality, so without that code, I can not even try to parse by String
image

Thanks!

@mparadina
Copy link
Contributor

Hi @omartinma!

If you're interested in getting the ISO format of the nationality of the document owner, you can obtain it from the MrzResult class, to be more specific with the nationality, santiziedNationality values.

So the code to obtain it would look like this:

result.mrzResult.santiziedNationality;
result.mrzResult.nationality;

Let me know if this helped.

@omartinma
Copy link
Author

@mparadina great, that will help for Nationality and Issuing Country of the passport. What about place of birth? Thanks!

@mparadina
Copy link
Contributor

Hi @omartinma

The 'Place of birth' field depends if the field is present, and how it is displayed on the document.
You can check if this field is present on each document you're scanning here in our documentation.
You can also see which information we always read from the MRZ here.

So, for example, if the place of birth field on the document contains the information 'California', then we will extract this information exactly as it is written.

Let me know if you have any additional questions.

@mparadina
Copy link
Contributor

Hi @omartinma

Just wanted to check in to see if the issue can be closed?

@mparadina
Copy link
Contributor

@omartinma closing the issue as it is inactive.
Feel free to reopen it if anything comes up!

@omartinma
Copy link
Author

@mparadina sorry, i was pending on this issue and now i am coming back to this feature.

So for example in the case of California, will it return the country code associated?

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

No branches or pull requests

2 participants