You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting an error when I run the following code on a fresh install
constss=require('sharedstreets-api');// 1. Get roads from shared streetsconsttile=[1186,1466,12];constlayer="geometry";ss.downloadTile(tile,layer,{output: 'json',}).then(data=>{constbody=pbf.geometry(data);}).catch(err=>console.error(err));
The error is:
Error: invalid wire type 4 at offset 23
at Reader.skipType (/Users/luke/git/curbmap-builder/node_modules/protobufjs/src/reader.js:373:19)
at Function.decode (/Users/luke/git/curbmap-builder/node_modules/sharedstreets-pbf/proto/sharedstreets.js:1767:24)
at Function.decodeDelimited (/Users/luke/git/curbmap-builder/node_modules/sharedstreets-pbf/proto/sharedstreets.js:1787:21)
at readBuffer (/Users/luke/git/curbmap-builder/node_modules/sharedstreets-pbf/index.js:91:30)
at Object.geometry (/Users/luke/git/curbmap-builder/node_modules/sharedstreets-pbf/index.js:23:12)
at /Users/luke/git/curbmap-builder/node_modules/sharedstreets-api/index.js:50:58
at processTicksAndRejections (internal/process/task_queues.js:85:5)
I'm guessing there may be a mismatch between the protobuf definition used to encode the data I'm getting in response and what my local system is trying to use to decode it...any ideas? The URL I'm retrieving from is https://tiles.sharedstreets.io/12-1186-1466.geometry.pbf.
The text was updated successfully, but these errors were encountered:
I'm getting an error when I run the following code on a fresh install
The error is:
I'm guessing there may be a mismatch between the protobuf definition used to encode the data I'm getting in response and what my local system is trying to use to decode it...any ideas? The URL I'm retrieving from is
https://tiles.sharedstreets.io/12-1186-1466.geometry.pbf
.The text was updated successfully, but these errors were encountered: