• CommentAuthorPMcB
    • CommentTimeSep 6th 2009
     
    Hi,
    I've been following this tutorial (translating from C# into vb.net) but I can't get it to work.
    The first problem is that the GeoCoder.ReverseGeoCode() method is not returning an address object (it evaluates as nothing). I think my LatLon object is correct - at least its "IsValid" property is "True".

    Also, the mapctrl doesn't actually display anything except the message that it's a trial version.

    Has anyone else managed to get this to work successfully?

    Thanks,
    McB
    •  
      CommentAuthorPepitaL
    • CommentTimeSep 6th 2009
     
    Hi McB,

    I think the best way to help you out would be to send your solution zipped to gbsupport@telogis.com
    We can then try it out and send you back the correct advice regarding your vb translation.

    Pepita
    •  
      CommentAuthorSeanS
    • CommentTimeSep 8th 2009
     
    Thanks for sending in your code. I believe that your code is working correctly (it does for me). The problem is probably that you do not have map data loaded for the LatLon you are using (52.57,-1.13) so it cannot ReverseGeoCode to find the address. You can see the data available by looking here:

    C:\Program Files\Telogis\GeoBase\GeoBaseResources\data\gb.3.0

    As a test, try searching for the LatLon in our MapExplorer sample. If you need more sample data to use you can find it in GeoZone here:

    http://geozone.geobase.info/downloads/sample

    If you have the PacWestUSA data loaded, a LatLon like 37.770058,-122.441138 should work.

    Sean
    • CommentAuthorPMcB
    • CommentTimeSep 8th 2009
     
    Excellent. Indeed it looks as though I had the wrong map data.

    Thanks very much for your help