Android : How can I find location using just PINCODE?

前端 未结 1 1702
梦如初夏
梦如初夏 2021-02-11 05:28

I am trying to get location using PINCODE/ZIPCODE ex:560001 (Bangalore pincode).I am getting the location when I enter the ADDRESS , STATE & COUNTRY, but unable to get using

1条回答
  •  情书的邮戳
    2021-02-11 06:17

    You can find a location (latitude, longitude) using any piece of address information but at the cost of accuracy. Now obviously you can have a lat long corresponding individually to a country, state, city, zip , address, etc and each will be more and more accurate, the more information you use.

    Having said that, which GPS app are you using and to do what?

    If the task is to find say restaurants, providing pincode should be enough.

    but if you want to route from point A to point B , providing destination pincode will be hardly useful it wont pin point your exact location.

    UPDATE

    You can find points of interest like restaurants, banks etc, you can use google places api. You can search by just providing the pin code. refer to the following documentation:

    https://developers.google.com/maps/documentation/places/#PlaceSearches

    0 讨论(0)
提交回复
热议问题