-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merging GeoJSON with Statistics returns an empty array #353
Comments
Can you provide the exact input you provided?
…On Mon, Jul 3, 2023, 4:12 PM Dmitry ***@***.***> wrote:
Hello!
I've started to search for an way to receive the statistics encoded using
GeoJSON for my google maps feature.
I tried to follow the official documentation provided in your Readme file,
specifically this code:
https://github.com/uscensusbureau/citysdk#all-counties
When I run the request, I receive the following output:
[image: Screenshot 2023-07-03 at 23 02 31]
<https://user-images.githubusercontent.com/46863241/250651582-ecedba49-1eca-429f-b7d7-6e08de760a8b.png>
Thanks
—
Reply to this email directly, view it on GitHub
<#353>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2ACPZNFAVDXL4LW4IQHFLXOMRTTANCNFSM6AAAAAAZ43PIDU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
import census from "citysdk";
interface ICensusCartographicData {}
//* Gets the raw census data
export const getCartographicData = async ({}: ICensusCartographicData) => {
return new Promise((resolve) => {
census(
{
vintage: "2017",
geoHierarchy: {
county: "*",
},
sourcePath: ["acs", "acs5"],
values: ["B19083_001E"], // GINI index
statsKey: "...",
geoResolution: "500k",
},
async (err: any, res: any) => {
resolve(res);
},
);
});
}; |
Sorry, this got buried under other work. I am really busy this week, but I will get to this by the end of the week. In the meantime, if you have a reproduction repo I can see, that would help. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I've started to search for an way to receive the statistics encoded using GeoJSON for my google maps feature.
I tried to follow the official documentation provided in your Readme file, specifically this code:
https://github.com/uscensusbureau/citysdk#all-counties
When I run the request, I receive the following output:
Thanks
The text was updated successfully, but these errors were encountered: