geocode inc err
This commit is contained in:
@ -29,7 +29,7 @@ const go = async () => {
|
|||||||
const urlBase = request.osm_reverse_geo.urlFull
|
const urlBase = request.osm_reverse_geo.urlFull
|
||||||
|
|
||||||
// let tracks = [];
|
// let tracks = [];
|
||||||
let tracks = await GpsTracksModels.get2ForReverseGeo(10)
|
let tracks = await GpsTracksModels.get2ForReverseGeo(20)
|
||||||
|
|
||||||
function processTrack(track, i) {
|
function processTrack(track, i) {
|
||||||
return (async () => {
|
return (async () => {
|
||||||
|
|||||||
@ -259,12 +259,12 @@ class GpsTracksModels {
|
|||||||
WHERE
|
WHERE
|
||||||
latitude is not null
|
latitude is not null
|
||||||
AND longitude is not null
|
AND longitude is not null
|
||||||
AND stts_reverse_geo = ?
|
AND stts_reverse_geo in (2,3)
|
||||||
and action = 'location'
|
and action = 'location'
|
||||||
ORDER BY id ASC
|
ORDER BY id ASC
|
||||||
LIMIT ?
|
LIMIT ?
|
||||||
`
|
`
|
||||||
params.push(GpsTracksModels.STTS_REVERSE_GEO_NOT, limit)
|
params.push(limit)
|
||||||
db.query(query, params, function (err, resp) {
|
db.query(query, params, function (err, resp) {
|
||||||
if (err) {
|
if (err) {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user