Comments (2)
Also, as per the documentation that has an example where a list of lat-long tuples is passed to GeocodioClient.reverse(), this also throws an error:
>>> list_tuples = [(40.8555,-73.8843), (40.85075,-73.8945)]
>>> client = GeocodioClient(api_key)
>>> data = client.reverse(list_tuples)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\geocodio_old\client.py", line 21, in wrapper
return f(*args, **kwargs)
File "C:\Python27\lib\geocodio_old\client.py", line 201, in reverse
return self.reverse_point(args[0][0], args[0][1], fields)
File "C:\Python27\lib\geocodio_old\client.py", line 21, in wrapper
return f(*args, **kwargs)
File "C:\Python27\lib\geocodio_old\client.py", line 176, in reverse_point
return error_response(response)
File "C:\Python27\lib\geocodio_old\client.py", line 34, in error_response
raise GeocodioDataError(response.json()['error'])
geocodio_old.exceptions.GeocodioDataError: Could not parse coordinate
from pygeocodio.
There were two code issues and a documentation issue. The patch in #5 solved one of the code issues, that is the treatment of points. Using *args
seems more elegant, but using a list
is certainly more straightforward. I basically used the code from #5 and added you as a contributor. The other issue - the main issue - was that the points were being serialized properly. That's why Geocodio sent back the Could not parse coordinate
error. That's also solved in 12668bf. As for the documentation, the docs in the repo here look correct, however the Geocodio docs on this are incorrect. once the pull request is accepted this should all be up to date.
Thank you for persisting with this.
from pygeocodio.
Related Issues (20)
- README errors HOT 2
- Reflect Canada in the README HOT 1
- return legislative district, and congressional district? HOT 3
- UserWarning HOT 1
- How to extract LAT and LON separately from geocoded_location.coords? HOT 2
- Broken __init__.py and client.py in pip package manager HOT 2
- Coordinate ordering HOT 1
- Including a reference key in batch encoding HOT 2
- Add the ability to use the HIPAA API URL
- Search by address components
- Upgrade to v1.4
- Is there an option to specify timeout for requests, especially for batch geocoding? HOT 1
- Update README and docs site with newer features
- Error while calling the GeocodioClient HOT 1
- Create CLI
- Geocodio listing HOT 1
- GeocodioAuthError
- Add limit optional parameter in batch geocoding HOT 1
- Field name "census" raises a ValueError HOT 2
- KeyError HOT 3
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 pygeocodio.