Skip to content
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

HBP-General: Export Pin data as GeoJSON as opposed to CSV #4

Open
silviu opened this issue Jan 22, 2018 · 2 comments
Open

HBP-General: Export Pin data as GeoJSON as opposed to CSV #4

silviu opened this issue Jan 22, 2018 · 2 comments
Assignees

Comments

@silviu
Copy link
Member

silviu commented Jan 22, 2018

No description provided.

@silviu
Copy link
Member Author

silviu commented Jan 22, 2018

See http://geojson.org/
GeoJSON can be imported into Google Maps directly without the need for us to go through the CSV file and parse it in the app.
https://developers.google.com/maps/documentation/ios-sdk/utility/kml-geojson

@silviu
Copy link
Member Author

silviu commented Jan 22, 2018

Everything we display in the map popup should be stored in the GeoJSON file.
There is no need for an API call just to get the name of the institution, number of ADs and tenders.
The load on the server will diminish and the app will be faster this way.

GeoJSON example for an institution:

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [125.6, 10.1]
  },
  "properties": {
    "id": 1,
    "name": "Primaria Bucuresti",
    "ad_number": 2463,
    "tender_number": 6253
  }
}

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

No branches or pull requests

2 participants