question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get city info for any US city

See original GitHub issue

Hi, I’m trying to use the following function to get the city info:

list_of_locations = city_registry.locations_for("New York", country="US")

It returns the empty list. The following function returns non-empty list:

list_of_locations = city_registry.locations_for("Paris", country="FR")

What could be the reason for the empty list in the first case? I tried many different US cities and all of them return empty list. Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
csparpacommented, Sep 2, 2021

@project-owner Hello, just to let you know that the refactoring is in the works (https://github.com/csparpa/pyowm/commit/783cb8beeddfa0e3cf2bfce2c768e583e692901d) and will be shipped on the next release!

0reactions
project-ownercommented, Sep 3, 2021

Good news. I hope it will be able to coexist with my app which is also using SQLite.

Read more comments on GitHub >

github_iconTop Results From Across the Web

US Cities Database - Simplemaps.com
Free and commercial U.S. cities databases. Includes latitude, longitude, population, county, zip codes, timezone, income and more. CSV, SQL and Excel ...
Read more >
Get city name using geolocation [duplicate] - Stack Overflow
I want to display the city name, it seems the only way to get it is to use a reverse geolocation API. I...
Read more >
country-state-city - npm
Start using country-state-city in your project by running `npm i ... Each State folder contains State's information and its Cities as ...
Read more >
Get geographic location data - Microsoft Support
You can get geographic-based data in Excel by using the Geography linked data ... type a country, state, province, territory, or city name...
Read more >
America's largest cities with no public transportation
But what happens if a city doesn't offer any bus, train or metro options to get around? 24/7 Wall St. found that in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found