开发者

Find latitude and longitude

Can any one help me in getting the latitude and longitude value of the place? The p开发者_开发技巧lace details must be gotten from the user as a input. The place detail can be ZIP code, city name, address, or state code.


You can use the Google Geocoding API to convert an address into a lat/lng.


One way I have used is to utilise the google maps API to return a lat/long for a given zip/postcode or city etc. Its normally quite good at dealing with different inputs.

Sadly I don’t have any C samples but could post up a VB.Net example if that helps


You need to geocode the address. Since Mapkit doesn't support geocoding (only reverse-geocoding) you'll have to use a web service to accomplish that. The are tons of web services for that. For example Google Geocoding

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜