mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-27 16:57:21 +00:00
Make GOOG revcoding URL configurable (for key)
This commit is contained in:
@@ -6,3 +6,4 @@ ocat
|
||||
store/
|
||||
jpm-test/
|
||||
config.mk
|
||||
config.h
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user