Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Android: Why fetching 20 addresses? #81

Open
@sanjeevraolade

Description

@sanjeevraolade

image
According to API, recommended is 1-5, but in this packager/api was hard - coded as 20. So may not get proper results ...

package API Code:
List<Address> addresses = geocoder.getFromLocation(position.getDouble("lat"), position.getDouble("lng"), 20);

It should be like

List<Address> addresses = geocoder.getFromLocation(position.getDouble("lat"), position.getDouble("lng"), 2);

OR

Give an option to user, so user can pass that value.
Hope you understood, what i am trying to explain..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions