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
精彩评论