javascript - Finding and converting navteq coordinates -
i'm trying scrape company's website coordinates of retail locations. need figure out how convert results i'm getting usable.
after submit search request desired area, page locations plotted on navteq map. i'm not having luck making sense of coordinate system they're using.
for example, when locations within 100km stockholm, se this:
<script type="text/javascript"> function setactionsmapaftertimer() { clearinterval(timersetmapafterdomready); if(!document.getelementbyid("maparea")) return; eplatform.map.init({containerid:"maparea", onready: function(map) { dealocmap = map; var centerbubble = [ '<div style="padding:0;margin:0;font-size:11px;">', '<table>', '<tr>', '<td style="padding-left:5px;"><b style="font-size: 11px;">stockholm</b></td>', '</tr>', '</table>', '</div>' ].join(''); dealocmap.setcenterlocation(3559.9378979999997, 1083.776436, 100000.0); dealocmap.addmarker(3559.9378979999997, 1083.776436, {bubbleinfos: centerbubble});
and first location...
var dealerbubble = [ '<div style="padding:0;margin:0;">', '<table>', '<tr>', '<td><img src="/img/dealers/icon.gif " /> </td>', '<td style="padding-left:5px;padding-top:7px;"><b style="font-size: 11px;">name</b></td>', '</tr>', '</table>', '</div>', '<div style="padding:0;margin:0;padding-top:5px;padding-bottom:5px;">', '<div>', '<p style="padding:0;margin:0;"> </p>', '<p style="padding:0;margin:0;">address</p>', '<p style="padding:0;margin:0;"></p>', '<p style="padding:0;margin:0;">locality</p>', '</div>', '<p style="padding:0;margin:0;"><b>tel.:</b> </p>', '<p style="padding:0;margin:0;"><b>fax:</b> </p>', '</div>' ].join(''); dealocmap.addmarker(3549.89404296875 , 1089.7158203125, { bubbleinfos: dealerbubble, icon: "/img/dealers/icon.gif" });
and on, until end:
} }); } var timersetmapafterdomready; window.addevent('domready', function() { timersetmapafterdomready=setinterval("setactionsmapaftertimer()", 600); }); /** * keep compatibility dealoc_content.jsp */ function centeroncoordinate(longitude, latitude, radius) { dealocmap.setcenterlocation(latitude, longitude, radius / 2.5); } </script>
in case map starts out centered @ (59.332271,18.062961) , location listed (59.1649,18.16193), still can't figure out how convert them. geocode addresses again, ones tried weren't accurate what's on page.
any ideas? thanks!
Comments
Post a Comment