Comments (3)
The problem seems to be the way these geospatial endpoints are constructed. sodapy doesn't currently support endpoints of the form:
https://data.austintexas.gov/api/views/9s7j-tygf/rows.json
I won't have time to fix this in the next few days, but if you take a look here, it should be a pretty straight forward pull request:
https://github.com/xmunoz/sodapy/blob/master/sodapy/__init__.py#L434
from sodapy.
Disregard my previous comment. The problem is actually that the dataset ID in the url is not the same as the one for the API endpoint for whatever reason. You can find the correct dataset identifier in Export > SODA API > API Endpoint
It works with the correct identifier.
> client.get("9s7j-tygf", limit=2)
[{'created_by': 'Automated', 'full_street_name': '14408 CELESTIAL LN', 'address': '14408', 'objectid': '709047', 'street_name': 'CELESTIAL', 'parent_place_id': '1486', 'place_id': '69441', 'segment_id': '3428213', 'created_date': '2003-03-26T00:00:00.000Z', 'the_geom': {'type': 'Point', 'coordinates': [-97.626872464507, 30.413745580484]}, 'street_type': 'LN', 'modified_by': 'SJENSEN', 'address_type': '1', 'modified_date': '2010-04-05T17:38:34.000Z'}, {'created_by': 'GIS-sclamons', 'full_street_name': '11407 MUSKET RIM', 'address': '11407', 'objectid': '694286', 'street_name': 'MUSKET RIM', 'parent_place_id': '5349', 'place_id': '3067941', 'segment_id': '2022072', 'created_date': '2002-01-22T00:00:00.000Z', 'the_geom': {'type': 'Point', 'coordinates': [-97.928297314234, 30.288360241308]}, 'address_type': '1', 'modified_date': '2002-01-22T00:00:00.000Z'}]
from sodapy.
from sodapy.
Related Issues (20)
- `datasets()` no longer filters on domain
- Missing tag - 1.5.3 HOT 1
- Drop support for python2 by EOL in 2020
- [documentation] List of Eligible Domains is Out of Date
- limit=None reverts to default
- Issue with upsert/replace HOT 5
- Feature request: Option to disable the throttling limit warning HOT 2
- support automatic pagination HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Support for Socrata Headers? HOT 3
- Documentation: Include `timeout` param in client example
- get_all() has inconsistent pagination HOT 6
- Delete By Row ID Not Working HOT 2
- SoQL query support for get_all() HOT 3
- Optional client.get "limit" defaults to 1000. Need limit=none HOT 1
- Needs update: Example 01: Basic Queries HOT 1
- `get_all()` does not paginate correctly, returning duplicate rows HOT 2
- Apply date filter in where field
- This repository will be archived on Aug 31 HOT 1
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 sodapy.