nativescript-community / nativescript-community/geocoding
Geocoding geocoding.getFromLocation(lat, long) returns junk characters for non-English address - Only in iOS (Works perfectly fine in Android)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Whenever we try to retrieve an address through geocoding.getFromLocation(lat, long) for Saudi Arabia or Germany, we get junk characters in the place of Arabic or German. This issue is only applicable to non-english address such as Arabic or German. Any help is really appreciated.
`[{
"latitude": 24.674337641395116,
"longitude": 46.740988469810105,
"name": "3458 Ibrahim Al Nusair Alley - \M-X\M--\M-Y\M^J \M-X\M-'\M-Y\M^D\M-Y\M^E\M-Y\M^D\M-X\M-2",
"isoCountryCode": "SA",
"country": "Saudi Arabia",
"postalCode": "12832",
"administrativeArea": "Riyadh Region",
"subAdministrativeArea": "Riyadh",
"locality": "\M-X\M-'\M-Y\M^D\M-X\M-1\M-Y\M^J\M-X\M-'\M-X\M-6",
"subLocality": "\M-X\M--\M-Y\M^J \M-X\M-'\M-Y\M^D\M-Y\M^E\M-Y\M^D\M-X\M-2",
"thoroughfare": "Ibrahim Al Nusair Alley",
"subThoroughfare": "3458",
"ios": {}
}]
[{
"latitude": 50.98037401864826,
"longitude": 10.333605520427225,
"name": "Karolinenstra\M-C\M^_e 26B",
"isoCountryCode": "DE",
"country": "Germany",
"postalCode": "99817",
"administrativeArea": "Thuringia",
"subAdministrativeArea": "Eisenach",
"locality": "Eisenach",
"subLocality": null,
"thoroughfare": "Karolinenstra\M-C\M^_e",
"subThoroughfare": "26B",
"ios": {}
}]`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the iOS implementation of geocoding.getFromLocation and trace how native address strings are converted into the returned object. Reproduce the issue with the Saudi Arabia and Germany coordinates in the report, then compare the iOS output with Android. Done means Arabic and German characters are preserved correctly in the returned fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100