codeforboston / codeforboston/mattapan-mapping

Data: Fetch Real Estate Dev data, convert to GeoJSON, add to the map

Open
#92 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5
Forks
16
PR merge metrics
No merged PRs in 30d

Description

- [ ] Along the lines of #49 and #50 , import the Real Estate Development data using the curl command at the end of this issue.
- [ ] Write a small function in the language of the import script to convert the specialized BTD JSON into GeoJSON with properties for each element of the BTD JSON but with longitude and latitude [in the standard GeoJSON format.](https://geojson.org)
- [ ] Add to the map data folder and draw it on the map in the explore page.

Sample from city-provided [ BTD data](http://www.bostonplans.org/projects/development-projects/project-template-(3)/map)

image

image

```
curl 'https://www.bostonplans.org/rest/content/currentsite/en-us/childrenof/projects/development-projects?format=json&classnames=BRA.Project&columns=BRAProjectID%2C+BRAProjectType%2C+Title%2C+BRAProjectDescription%2C+MenuItemTeaserImage%2C+BRALatitude%2C+BRALongitude%2C+BRANeighborhoodID%2C+BRAProjectStatus%2CBRABldgSqFt%2CBRALandSqFt%2CBRAArticle80Type' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Authorization: Basic UmVzdEFQSTpCUkFCb3N0b242MTchIQ==' -H 'X-Requested-With: XMLHttpRequest' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://www.bostonplans.org/map/index.html?tabletype=dev&hidesearch=true&hideviewby=true' -H 'Cookie: CMSPreferredCulture=en-US; VisitorStatus=21062777352; ASP.NET_SessionId=ttzvs41nlb1e5t0htteak5gb; NSC_wcsbxfc_80=ffffffff09f97b5345525d5f4f58455e445a4a423660' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.