开发者

Google Maps Boundaries (limiting location data to a Lat/Long Boundary)

开发者 https://www.devze.com 2023-01-28 11:10 出处:网络
Anyone know how to get thew Google Maps API HTTP request/response to only return me Locations that fall within Australia ?

Anyone know how to get thew Google Maps API HTTP request/response to only return me Locations that fall within Australia ?

I thought I could just add:

bounds=lat, long | lat Long

Creating a square boundary based off Coordinates, but Google for 开发者_开发知识库some strange reason isn't liking it.

[NSString stringWithFormat:@"%@%@+Australia&bounds=-9.102097,104.765625|-44.902578,159.697266&sensor=false&region=au", kGoogleGeocodeURL, params];


Problem resolved, it turns out that the search string was correct, but I needed to use UTF8Encoding, as NSString didn't like the Commas.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号