Make GOOG revcoding URL configurable (for key)

This commit is contained in:
Jan-Piet Mens
2015-08-16 12:51:06 +02:00
parent b19496da73
commit e84d6bd624
5 changed files with 14 additions and 4 deletions
+1
View File
@@ -6,3 +6,4 @@ ocat
store/
jpm-test/
config.mk
config.h
+1 -1
View File
@@ -17,7 +17,7 @@ ot-reader: ot-reader.c json.o utstring.h ghash.o mkpath.o jget.o
ot-recorder: ot-recorder.c json.o utarray.h utstring.h geo.o geohash.o mkpath.o file.o safewrite.o base64.o ghash.o config.h udata.h misc.o
$(CC) $(CFLAGS) ot-recorder.c -o ot-recorder json.o geo.o geohash.o mkpath.o file.o safewrite.o base64.o ghash.o misc.o $(LIBS)
geo.o: geo.h geo.c udata.h Makefile config.mk
geo.o: geo.h geo.c udata.h Makefile config.mk config.h
geohash.o: geohash.h geohash.c udata.h Makefile config.mk
file.o: file.h file.c config.h misc.h Makefile config.mk
base64.o: base64.h base64.c
+1
View File
@@ -7,6 +7,7 @@ Recorder
## Installation
1. Copy `config.h.example` to `config.h`
1. Edit `config.h`
2. Edit `config.mk` and select features
2. Type `make`
-3
View File
@@ -1,3 +0,0 @@
#define JSONDIR "store"
#define GEOHASH_PREC (7)
+11
View File
@@ -0,0 +1,11 @@
#define JSONDIR "store"
#define GEOHASH_PREC (7)
/*
* Google Maps reverse geocoding URL.
* If you need to use an API KEY, change the scheme to "https:"
* and add "&key=xxxxx" to the end of this URL
*/
#define GURL "http://maps.googleapis.com/maps/api/geocode/json?latlng=%lf,%lf&sensor=false&language=EN"