Ejemplo n.º 1
0
    private OnlineMapsGoogleGeocoding(RequestParams p)
    {
        _status = OnlineMapsQueryStatus.downloading;

        StringBuilder url = new StringBuilder("https://maps.googleapis.com/maps/api/geocode/xml?sensor=false");

        p.GenerateURL(url);
        www             = OnlineMapsUtils.GetWWW(url);
        www.OnComplete += OnRequestComplete;
    }
    private OnlineMapsGoogleGeocoding(RequestParams p)
    {
        _status = OnlineMapsQueryStatus.downloading;

        if (p is GeocodingParams)
        {
            geocodingParams = p as GeocodingParams;
        }
        else if (p is ReverseGeocodingParams)
        {
            reverseGeocodingParams = p as ReverseGeocodingParams;
        }

        StringBuilder url = new StringBuilder("https://maps.googleapis.com/maps/api/geocode/xml?sensor=false");

        p.GenerateURL(url);
        www             = new OnlineMapsWWW(url);
        www.OnComplete += OnRequestComplete;
    }