I need download tiles for specified area. I have a bbox with lat/long coordinates, but how convert them to x/y which are required by URL
I need download tiles for specified area. I have a bbox with lat/long coordinates,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To work out which tile you need for a given latitude and longitude, you first need to pick a zoom level that you’re interested in. Then calculate:
Note: ln stands for natural logarithm
round down xtile and ytile to get the integer tile numbers.
If you need to go the other way:
That should be enough to get you up and running. To get help with any of CloudMade’s APIs and to keep up-to-date with our latest releases, take a look at the developers mailing list.