mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
rename
This commit is contained in:
@@ -382,11 +382,11 @@ static int dispatch(struct mg_connection *conn, const char *uri)
|
||||
if (otype == JSON) {
|
||||
return (json_response(conn, obj));
|
||||
} else if (otype == LINESTRING) {
|
||||
JsonNode *geolinestring = geo_linestring(locs);
|
||||
JsonNode *geoline = geo_linestring(locs);
|
||||
|
||||
if (geolinestring != NULL) {
|
||||
if (geoline != NULL) {
|
||||
json_delete(obj);
|
||||
return (json_response(conn, geolinestring));
|
||||
return (json_response(conn, geoline));
|
||||
}
|
||||
|
||||
} else if (otype == GEOJSON) {
|
||||
|
||||
Reference in New Issue
Block a user