How to make a GET request with latitude and longitude paired a structure using AFNetworking?
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.0,121.0&
distance=10
The parameter center
is a coordinate with latitude & longitude. How to do that using AFNetworking?
You should add it to your parameters dictionary as a formatted string, something like this:
This is just an example, as your architecture may already have a session manager, or an http client. Just enter the 'center' parameter as an NSString created from the latitude and longitude values you need.