Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 648 Bytes
#include <iostream>
#include "../include/route4me.h"
#define KEY "11111111111111111111111111111111"
using namespace std;
int main()
{
// global init
CRoute4Me::init();
CRoute4Me route(KEY, true);
const char* addrs = "33.945705,-118.391105";
const char* format = "json";
if(route.batch_geocoding(addrs, format) == 0)
{
cout << "Geocoding done:" << endl << Json::FastWriter().write(route.get_json_resp()) << endl;
}
else
{
cout << "Geocoding failed: " << route.get_err_code() << ": " << route.get_err_msg() << endl;
}
// global cleanup
CRoute4Me::cleanup();
return 0;
}
You can’t perform that action at this time.