#include "mapquest_debug.h"
#include "mapquest_queue.h"
#include "mapquest_restcurl.h"
+#include "mapquest_util.h"
#define REVERSE_GEOCODE_URL "https://open.mapquestapi.com/geocoding/v1/reverse?key=%s&outFormat=json"
else
snprintf(tmpStr, sizeof(tmpStr), REVERSE_GEOCODE_URL, "null");
- strcpy(url, tmpStr);
+ STRCPY(url, tmpStr);
snprintf(tmpStr, sizeof(tmpStr), "&location=%f,%f", latitude, longitude);
- strcat(url, tmpStr);
+ STRCAT(url, tmpStr);
add_handle(url, REQ_TYPE_REVGEOCODE, user_data);