[Bug]: Wrong pincode at first index of array. There is no types parameter with key postal_code just like google provides in its reversegeocoding API.

Open
#257 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile

Research direction

Start by reproducing the reported coordinates through the Dart placemarkFromCoordinates call on both Android and iOS, using version 3.0.0 and comparing the returned postal-code data. Trace how the plugin exposes the platform geocoder result and determine whether the requested postal-code selection is supported. Done means the reported coordinates return the expected pincode or the limitation is documented with a verified result.

Written by the indexing model from the issue text.

Description

Please check the following before submitting a new issue.
Please select affected platform(s)
  • Android
  • iOS
Steps to reproduce

Hi,

Facing issue of having wrong pincode based on provided devices latitude and longitude. Example, If I am passing device latitude longitude, the accurate postal code should get visible.

Result

Expected Output : 24.8234664, 75.0307014 => 458226

Expected results

If I pass latlong : 24.8234664, 75.0307014 it should get pincode as 458226

Actual results

When passing latlong : 24.8234664, 75.0307014 getting pincode 454226

Code sample

List<geocoding.Placemark> placemarks = await geocoding.placemarkFromCoordinates(loc.latitude, loc.longitude);

Using dart, I should get types as postal-code and basis of that I should get the actual pincode of that location.

Screenshots or video

No response

Version

3.0.0

Flutter Doctor output

Have done all the things and upgraded the flutter version with all other dependencies

Dominant language
Dart
Stars
153
Forks
92
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Baseflow/flutter-geocoding

All issues in Baseflow/flutter-geocoding

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.