Usage for Developers

This API allows you to join geospatial data with tabular data. Use the following endpoints to interact with the API:

Geofusion Endpoint for Web Feature Service : /tjs/api/wfs

This endpoint retrieves geospatial data from a Web Feature Service (WFS) and merges it with tabular data from a specified CSV file. It adheres to the Open Geospatial Consortium (OGC) Table Joining Service (TJS) standard, enabling seamless integration of geospatial and non-spatial data for mapping and analysis. Parameters descriptions are here for WFS Endpoint.

Example Request

Description: Fetches WFS GeoJSON format from a GeoServer.

GET /tjs/api/wfs?FrameworkURI==https://geoserver.schawanji.tech/geoserver/ows?&GetDataURL=https://raw.githubusercontent.com/schawanji/TJS-Server/refs/heads/main/static/covid_data.csv&typeName=us-states&FrameworkKey=name&AttributeKey=state

Geofusion Endpoint for Vector Tile Map Service: /tjs/api/tms/

This endpoint retrieves data from a Vector Tile Map Service (VTMS), and merges it with tabular data from a specified CSV file. The code fetches tiles GeoJSON format from a VTMS endpoint based on the requested coordinates, zoom level, and tile parameters. It adheres to the Open Geospatial Consortium (OGC) Table Joining Service (TJS) standard, enabling seamless integration of geospatial and non-spatial data for mapping and analysis. Parameters descriptions are here for VTMS Endpoint.

Example Request

Description: Fetches GeoJSON tiles from a GeoServer.

GET /tjs/api/tms/?FrameworkURI=https://geoserver.schawanji.tech/geoserver/gwc/service/tms/1.0.0/geoconnect:us-states@EPSG:900913@geojson/{z}/{x}/{-y}.geojson&GetDataURL=https://raw.githubusercontent.com/schawanji/TJS-Server/refs/heads/main/static/covid_data.csv&typeName=us-states&FrameworkKey=name&AttributeKey=state

Response

The response is a GeoJSON object containing the merged data, where the WFS or Vector TMS geospatial features are enriched with attributes from the CSV file.

Use Case

This endpoint is ideal for applications requiring geospatial visualizations with associated tabular data, such as mapping COVID-19 statistics by state or visualizing demographic information on a map.