Skip to content

🥴 Function made for getting boundary geo-points for given state from Nominatim API#20

Open
anoojlal wants to merge 12 commits intomasterfrom
nominatim-api
Open

🥴 Function made for getting boundary geo-points for given state from Nominatim API#20
anoojlal wants to merge 12 commits intomasterfrom
nominatim-api

Conversation

@anoojlal
Copy link

Changes

  • Added nominatimApi.js in newly created /utils directory
  • getBoundsOfState() function tested in useEffect() of ExamplePage.jsx

@vercel
Copy link

vercel bot commented Oct 16, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hack4impact/collective-liberty/766ijkm24
✅ Preview: https://collective-liberty-git-nominatim-api.hack4impact1.vercel.app

Copy link
Contributor

@kenetec kenetec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

});

export const getBoundsOfState = (place) => {
const requestExtension = `search?q=${place}&format=jsonv2&polygon_geojson=1`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a state parameter that you can use instead to query exact results instead of a large series. We will use the q param for grabbing more granular locations so you can actually just rename this function and then create one for specifically grabbing the state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants