node.js - Nominatim retrieving different data for the same request -


i'm using nominatim api bounding boxes , polygon points of local streets project.

an issue found when request url on web browser, example:

rua de santa maria

it retrieves bounding boxes:

["32.6474594","32.64779","-16.8998967","-16.8993021"] ["32.6469257","32.6470059","-16.8981943","-16.8974107"] ["32.6478793","32.6478838","-16.9007069","-16.9005973"] ["32.6478902","32.647988","-16.9014895","-16.9007494"] 

but when use same url request using node.js application:

var request = require('request');  var url = encodeuri("http://nominatim.openstreetmap.org/search?" +      "q=rua de santa maria,madeira&format=json&polygon=1&addressdetails=1");  request({url: url, json: true}, function (err, res, json){     console.log(json); }); 

it retrieves:

["32.6470059","32.647067","-16.8984633","-16.8981943"] ["32.6469257","32.6470059","-16.8981943","-16.8974107"] ["32.6480316","32.6480782","-16.9021559","-16.901742"] ["32.6478793","32.6478838","-16.9007069","-16.9005973"] 

which different. polygon points retrieved different. has idea why happens?

the requests not same. browser sends additional information in request headers such preferred language. these additional information seem influence search result.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -