protected OnlineMapsGooglePlaces(string key, RequestParams p)
    {
        _status = OnlineMapsQueryStatus.downloading;

        StringBuilder url = new StringBuilder();

        url.AppendFormat("https://maps.googleapis.com/maps/api/place/{0}/xml?sensor=false", p.typePath);
        if (!string.IsNullOrEmpty(key))
        {
            url.Append("&key=").Append(key);
        }
        p.AppendParams(url);

        www             = OnlineMapsUtils.GetWWW(url);
        www.OnComplete += OnRequestComplete;
    }
Exemplo n.º 2
0
    private OnlineMapsFindPlaces(string key, RequestParams p)
    {
        _status = OnlineMapsQueryStatus.downloading;

        StringBuilder url = new StringBuilder();

        url.AppendFormat("https://maps.googleapis.com/maps/api/place/{0}/xml?sensor=false", p.typePath);
        if (!string.IsNullOrEmpty(key))
        {
            url.Append("&key=").Append(key);
        }
        p.AppendParams(url);

        www = OnlineMapsUtils.GetWWW(url);
        OnlineMaps.instance.AddGoogleAPIQuery(this);
    }