• CommentAuthornixbure
    • CommentTimeMar 12th 2011
     
    Hi In the Function GetRegions of the DrillDownGeoCoder, is there a way to search a Item that you dont know how it's name starts. For example. If you want to look for a street that its name is Royal Marine Street and if you only know the "Marine" part of the name.

    Regards
    Mario Alvarez
    • CommentAuthorSharonD
    • CommentTimeMar 14th 2011
     
    Hi Mario,

    For streets, you should be able to search any part of the street name. In your example you can start typing in either 'Royal' or 'Marine'. However this is not implemented for regions yet.

    Kind regards,
    Sharon
    • CommentAuthornixbure
    • CommentTimeMar 16th 2011
     
    Is there any way to geocode with an address like "317 Schubert, Leon Moderno, Leon, Guanajuato, MExico"? on Mobile?

    Regards
    • CommentAuthorSharonD
    • CommentTimeMar 17th 2011
     
    GeoCoder.GeoCode methods are available on Mobile too, so you should be able to call GeoCoder.GeoCode("317 Schubert, Leon Moderno, Leon, Guanajuato", Country.Mexico). You can also use DrillDownGeoCoder: Mexico > Guanajuato > Leon / Leon Modemo > Schubert > 317

    Regards,
    Sharon
    • CommentAuthornixbure
    • CommentTimeMar 17th 2011
     
    Hi The problem with DrillDownGeoCoder is that Third region should be the City and is what we call "Colony" or Neightborhood.
    We think that the drill should be (For Mexico) Mexico>Guanajuato>Leon>Leon Moderno>Schubert but it isn't
    Let me check the Geocoder.geocode

    Regards

    Mario
    • CommentAuthorSharonD
    • CommentTimeMar 17th 2011
     
    Hi Mario,

    You should be able to search Mexico>Guanajuato>Leon>Leon Moderno>Schubert.

    Use the following code you should find "Leon Moderno":
    DrillDownGeoCoder geo = new DrillDownGeoCoder(Country.Mexico);
    RegionData[] rdList;
    rdList = geo.GetRegions(0, "Guanajuato").Results;
    geo.SetRegion(rdList[0]);
    rdList = geo.GetRegions(1, "Leon").Results;
    geo.SetRegion(rdList[0]);
    rdList = geo.GetRegions(2, "Leon Moderno").Results;

    You do not need to set region 2 to "Leon Moderno", just call geo.GetStreets("Schubert") to locate the street.


    Regrds,
    Sharon
    • CommentAuthornixbure
    • CommentTimeMar 17th 2011
     
    Hi I used the Geocoder.Geocode Function on Windows Mobile and it throws me the next Error

    "Exception not handled of the type 'System.NotImplementedException' on geobase.mobile.net.dll

    aditional Information : GeoCoder is not available on GBMobile"

    Do u know why it appears?

    Regards

    MArio
    • CommentAuthorSharonD
    • CommentTimeMar 21st 2011
     
    Hi Mario,

    I've just checked with Dev team and they confirm that GeoCode methods are not available on Mobile. Very sorry for suggesting it to you. There is an error in documentation which is misleading us.

    At the moment you can use only DDGC on Mobile. I have showed you some sample code above. Let us know if you still have problem with it.

    Regards,
    Sharon
    • CommentAuthornixbure
    • CommentTimeMar 22nd 2011
     
    Thanks Sharon I think this could help me.

    Regards

    Mario