Comments (2)
That is because the ok
property on the return value tells you (as the docs say) if there is any result, but the IpInfo provider is coded to treat any response from the service as a “result”. It does look like the _adapt_results
hook of IpinfoQuery
incorrectly processes the response, but it is probably not going to be fixed anytime soon. Our only option is to check both values:
info = geocoder.ip( ... )
if info.ok and info.current_result.ok:
# This means the server could be contacted AND info about the IP could be fetched.
from geocoder.
Gotcha! great thanks.
from geocoder.
Related Issues (20)
- GPS location HOT 1
- Error using the library
- OpenCage Result Constructs BBox Incorrectly
- Yandex does not work
- How to get country name in English
- Quality/type tags in results by reverse geocoding
- Searching for names in Italian
- geocoder.w3w no longer works with v3 of W3W
- OSM setting a user agent.
- ModuleNotFoundError: No module named 'ratelim' HOT 3
- Google Provider returns "None" HOT 1
- can't seem to get elevation from google HOT 3
- wrongly interpreting sea-level elevation status: ERROR - No Elevation found
- Status of maintenance HOT 3
- Geocode.Farm Update
- "Accept-language" keyword
- geocoder.osm error cod 403 HOT 2
- GeocodeFarm
- Tỳht
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geocoder.