Android : How can I find location using just PINCODE?

自作多情 提交于 2019-12-04 15:48:34

问题


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 pincode/zipcode. It displays UNKNOWN address.. can we find LOCATION using PINCODE ??


回答1:


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



来源:https://stackoverflow.com/questions/9714026/android-how-can-i-find-location-using-just-pincode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!