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

  • SEARCH
  • Home
  • 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 8054651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:11:48+00:00 2026-06-05T08:11:48+00:00

I would like to store world cities in a list since metro app can’t

  • 0

I would like to store world cities in a list since metro app can’t have local database but I am not sure it is possible (I’ve found a text file with more than 3 million cities).

I wonder how they did in the weather app. Since there is no latentcy in the results suggested (in the search charm or in the “favorite places” screen), I don’t think they use a webservice, and also I want my app to be able to propose a list of cities even if there is no connection available.

Any idea ?

  • 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-06-05T08:11:49+00:00Added an answer on June 5, 2026 at 8:11 am

    Simply stick it in a text file, delimited by line. This is not a large amount of data – you can likely hold it all in RAM in one go.

    Using a database just for this one list seems a little overkill.

    With some rough calculations, assuming names of around 20 characters each, I’m in the region of about 100MB of city data. That’s not insignificant for one list in memory – granted, but it’s not a lot to have to contend with.

    You may even be able to use something like a Linq to Text provider.


    How they may have done it in the charm is to only worry about a few cities – the favourites and whatever your location service last reported. Handling < 10 is easier than 3 million.

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

Sidebar

Related Questions

I have a certificate .p12 and .crt and I would like store the public
can some explain to me how the database design would look like for the
I would like to store all paths to headers in separate file. I'm going
I would like to store some information at the request scope when using google
I would like to store the points whenever touchesMoved is called. So far everything
I would like to store historical equity price data in a table in the
I would like to store a small profile picture of my users in their
I would like to store large dataset generated in Python in a Django model.
I would like to store the cookies from one open-uri call and pass them
I would like to store lengthy .sql scripts in my solution and execute them

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.