Is it possible to determine whether a GeoJSON point at a given lat,lon lies within a given GeoJSON polygon using only JavaScript (either through d3, topojson, or any other way)?
For example, I can draw a map showing countries in the UK based on the tutorial here.
I then have a some points which have coordinates but no indication as to which country they lie within.
I would like to display a total point count for each country.
Can I work out which country contains each point in the browser, or do I need to preprocess my point data on the server using PostGIS or similar?