Google Places API缓存控制错误

时间:2018-08-08 19:54:31

标签: ios swift google-maps-api-3 google-places-api googleplacesautocomplete

我一直在iOS应用程序上使用Google Places API,今天我开始收到此消息,但没有收到回去的位置,而且我使用的是网络版本,因为我需要获取位置而无需用户搜索任何东西(如果有人知道如何做),请使用iOS版Places SDK过滤博物馆以获取示例,请告诉我该怎么做:

response Optional(<NSHTTPURLResponse: 0x600001f701c0> { URL: https://maps.googleapis.com/maps/api/place/textsearch/json?query=san+francisco+museums&language=en&key=\(myKey) } { Status Code: 200, Headers {
"Cache-Control" =     (
    "no-cache, must-revalidate"
);
"Content-Encoding" =     (
    gzip
);
"Content-Length" =     (
    152
);
"Content-Type" =     (
    "application/json; charset=UTF-8"
);
Date =     (
    "Wed, 08 Aug 2018 19:48:45 GMT"
);
Expires =     (
    "Fri, 01 Jan 1990 00:00:00 GMT"
);
Pragma =     (
    "no-cache"
);
Server =     (
    "scaffolding on HTTPServer2"
);
"alt-svc" =     (
    "quic=\":443\"; ma=2592000; v=\"44,43,39,35\""
);
"x-frame-options" =     (
    SAMEORIGIN
);
"x-xss-protection" =     (
    "1; mode=block"
);

}})

0 个答案:

没有答案