Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3348812
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:35:17+00:00 2026-05-18T01:35:17+00:00

I need download tiles for specified area. I have a bbox with lat/long coordinates,

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:35:18+00:00Added an answer on May 18, 2026 at 1:35 am

    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:

    n = 2 ^ zoom
    xtile = ((lon_deg + 180) / 360) * n
    ytile = (1 - (ln(tan(lat_rad) + sec(lat_rad)) / Pi)) / 2 * n
    

    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:

    n = 2 ^ zoom
    lon_deg = xtile / n * 360.0 - 180.0
    lat_rad = arctan(sinh( Pi * (1 - 2 * ytile / n)))
    lat_deg = lat_rad * 180.0 / Pi
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net download page which send a file to client but I
I have a table of urls which I need to loop through, download each
I need to download images from a website, and I have the login name
I need to download and install xcode . But i need to know the
i'm developing an app which download map tiles around different places in a city.
I'v search for a long times to solve this error,But still have no idea.
Im using latest TCPDF version(5.9). But have some strange problems with encoding. I need
I have an iOS app, and at certain times I need to download a
I need to download several files via http in Python. The most obvious way
I need to download a large file (2 GB) over HTTP in a C# console

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.