Currently i am doing a project where i am using MapPoint for UK. I just have a post code with me and i need to convert that to latitude longitude. No other information i have, just the post code. Can anyone tell me how shall i do it using Microsoft MapPoint WS 3.5
Regards,
Arif Habib
You could use the Find method, here's a slightly modified example from the
SDK:
Dim myEntityTypeNames(0) As String
myEntityTypeNames(0) = "Postcode1"
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.EU"
findSpec.InputPlace = "Some Postal code in the UK"
findSpec.EntityTypeNames = myEntityTypeNames
Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine(fr.FoundLocation.LatLong.Latitude.ToString() _
+ ", " + fr.FoundLocation.LatLong.Longitude.ToString())
Next
Steven Pushee
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.