We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Bringing language support to pygeoapi

Formal Metadata

Title
Bringing language support to pygeoapi
Title of Series
Number of Parts
237
Author
Contributors
License
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
The pygeoapi project easily allows developers to build their own data providers. This talk describes the creation process of a bilingual OGC API Records provider and how it led to a pull request that brought multilingual support to pygeoapi. The Canadian Geospatial Platform (CGP) has recently built an open REST API, known as the geoCore API, that offers users the ability to return metadata records both in French and English. As part of the OGC API Records code sprint, a pygeoapi data provider was developed that queries CGP's REST API. However, pygeoapi did not provide a mechanism yet that allowed us to query the CGP records in the desired language. Furthermore, pygeoapi's web frontend was available in a single language only and featured lots of hard-coded text strings. To solve this problem, a PR was created that made pygeoapi language aware and allowed users to request data in their language of choice using either a query parameter or an Accept-Language header. This talk will discuss the difficulties faced when adding language support and demonstrate the resulting pygeoapi provider and the technologies used to implement it.