Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Post Code to Latitude Longitude

0 views
Skip to first unread message

Arif Habib

unread,
May 24, 2004, 4:11:03 PM5/24/04
to
Hi,

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

Steven Pushee

unread,
May 25, 2004, 8:03:38 AM5/25/04
to
Hello,

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.

0 new messages