mirror of
https://github.com/crawlerop/lpads
synced 2026-08-13 05:52:32 +07:00
geocoding disabled
This commit is contained in:
parent
9512ee7293
commit
5f60cbfb75
1 changed files with 8 additions and 2 deletions
|
|
@ -580,6 +580,7 @@
|
|||
|
||||
function loadPins(adData) {
|
||||
var fa_index = 0
|
||||
var not_found = false
|
||||
adData.forEach(function(ad) {
|
||||
lp = ad.adLocation.split(", ")
|
||||
switch (up.get("geocoder")) {
|
||||
|
|
@ -592,12 +593,17 @@
|
|||
break
|
||||
|
||||
case "nominatim":
|
||||
default:
|
||||
tg = searchAPIURLNominatim.replace("(lat)", lp[0]).replace("(long)", lp[1])
|
||||
break
|
||||
break
|
||||
|
||||
case "none":
|
||||
default:
|
||||
not_found = true
|
||||
break
|
||||
|
||||
}
|
||||
var atwn = null
|
||||
if (not_found) atwn = "Geocoding disabled"
|
||||
if (adParseFunction != null) {
|
||||
resp = adParseFunction(JSON.parse(JSON.stringify(ad)))
|
||||
if (resp != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue