The Rails application that powers OpenStreetMap
decimal places for the zoom level whilst still preserving accuracy sufficient to position the map within a few pixels. The relationship between zoom level, decimal places, and the accuracy with which the map can then be positioned in pixels is as follows: Zoom Decimals Accuracy (pixels) 1 0 1.42 2 0 2.84 3 1 0.57 4 1 1.14 5 1 2.28 6 2 0.46 7 2 0.91 8 2 1.82 9 3 0.36 10 3 0.73 11 3 1.46 12 4 0.29 13 4 0.58 14 4 1.17 15 5 0.23 16 5 0.47 17 5 0.93 18 6 0.19 So the worse case is at zoom 2 where accuracy is still within 3 pixels. Based on a patch by rjmunro. |
||
---|---|---|
app | ||
config | ||
db | ||
doc | ||
lib | ||
public | ||
script | ||
test | ||
Rakefile | ||
README |
INSTALL ======= * get rails working (http://www.rubyonrails.org/) * make your db (see db/README) * install ruby libxml bindings: # sudo aptitude install libxml-ruby1.8 libxml-parser-ruby1.8 * make sure you have a MTA listening on localhost:25 if you want mail * script/server * thats it API CHANGES FOR EDITOR AUTHORS ============================== See http://wiki.openstreetmap.org/index.php/REST#Changes_in_the_upcoming_0.4_API HACKING ======= log in to your site (proably localhost:3000) create a user and confirm it you want to play with the API (probably at localhost:3000/api/0.4/node/create etc) Lots of tests are needed to test the API. Lots of little things to make the site work like the old one. Also see the 'rails_port' component for bugs: http://trac.openstreetmap.org/query?status=new&status=assigned&status=reopened&component=rails_port&order=priority