Point data is arranged in the following structure below a given Wazimap NG Profile:
Themes
Categories
Points
A common way to fetch points is to
Fetch the point themes for a profile, which includes their categories
Fetch the points in a category.
Example themes:
Example point categories
Profile Collections vs Categories
Note that what is called Profile Collections in Admin is called Categories in the points API.
Point data identifiers and updates
Point data themes and collections are continually curated to provide the best user experience.
Avoid hard-coding theme, category and point IDs without documented agreement with profile maintainers that those will remain consistent. Rather agree on names for themes and categories, and notification procedures for updates.
To update points in-place rather than replace entire categories of points, agree on a consistent unique identifier that will be available in the point data fields with the profile administrators.
GET
https://production.wazimap-ng.openup.org.za/api/v1/profiles/
Profile id is required to make requests to points API. Get the ID of the profile from the Profile list.
Field
Detail
id
ID of the Profile
name
Profile Name
permission_type
Public | Private - Profile Admin can specify which type of user should be able to view data linked to profile
requires_authentication
Boolean - Decides if the user needs authentication to view data
geography_hierarchy
Hierarchy for the Profile
description
TextField - Contains short intro about Profile
configuration
Profile configurations set up by profile admin
GET
https://production.wazimap-ng.openup.org.za/api/v1/profile/:profile_id/points/themes/
This API endpoint will return all Themes that are linked to specific Profile
A Profile can be linked to multiple themes and Themes contains multiple categories.
Example request:
GET https://production.wazimap-ng.openup.org.za/api/v1/profile/8/points/themes/
profile_id
number
ID of the profile
Field
Description
ID
Theme ID
name
Name of the Theme
icon
Icon used to display on Theme
order
Order in which themes are displayed in UI
profile
ID of the Linked Profile
categories
List of sub-data that displays more information and points available for a Theme
GET
https://production.wazimap-ng.openup.org.za/api/v1/profile/:profile_id/points/theme/:theme_id/profile_categories/
Get all categories under a Theme
profile_id
number
ID of the Profile
theme_id
number
ID of the theme
Field
Description
ID
Category ID
name
Name of category
description
Description to explain info about category
theme
Linked Theme obj Details
Metadata
Information about the source of data
GET
https://production.wazimap-ng.openup.org.za/api/v1/profile/:profile_id/points/category/:category_id/points/
Get coordinates and location details for a category.
Example request:
GET https://production.wazimap-ng.openup.org.za/api/v1/profile/8/points/category/578/points/
profile_id
number
ID of the Profile
category_id
number
ID of the Category
Field
Description
features
List of coordinates inside a category
features > id
Location ID
features > geometry
Coordinate details for a Location
features > properties
Data associated with coordinates. It can include anything profile admin wants to display in association with location. ex: Name, Phone number, Detailed address etc.
There is also option for profile admin to have url and image in feature properties
GET
https://production.wazimap-ng.openup.org.za/api/v1/profile/:profile_id/points/geography/:geography_code/points/
Get points within a Geography. API returns Categories within Geography with all the points associated with specific Category inside requested Geo Code
profile_id
number
ID of the profile
geography_code
string
Geo Code for Geography
Field
Description
count
Total Number of Categories with in a Geography
results
List of Detailed points collection for Categories
results > category
Category Name
results > features
List of locations with details for a category within Geography
GET
https://production.wazimap-ng.openup.org.za/api/v1/profile/:profile_id/points/category/:category_id/geography/:geography_code/points/
Get all Points for a Category within a specific Geo Code
profile_id
number
ID of the Profile
category_id
number
ID for the Category
geography_code
string
Geo Code for Geography