Closed rcavaliere closed 4 years ago
@rcavaliere @bertolla First version done. Please test at https://mobility.api.opendatahub.testingmachine.eu
Representations can now be "flat" or "tree" and "node" or "edge", where "node" is not necessary to be given for backward compatibility. Add those modes as comma separated values... For example, flat,edge
or just tree
(is same as tree,node
)...
I will now refactor some part of the code to make it more readable
Now we need to discuss if we need metadata for each station in the edge representation (would add 3 joins), and if we need also parent stations each? However, those additions could reduce performance of the API
Nice! Is it possible to have the coordinates in a desired coordinate reference system through a specific API call? For the metadata, I think it is sufficient what the end-point already provides. In case of further requests we can make the API richer and more complex
@rcavaliere That would be possible, but I suggest to open another user story for that, since it is not that trivial to add such non-aggregation functions to the API. Currently, all function automatically trigger a GROUP BY. Another possibility would be to hardcode a desired CRS... What do you think?
@Piiit OK, I understand. I agree to create a new user story for that. It should however be clear for a 3rd party, the coordinate reference system in which he gets the geometry. Is there an attribute for that?
@rcavaliere @bertolla Please test
Swagger = https://swagger.opendatahub.bz.it/?url=https://mobility.api.opendatahub.testingmachine.eu/v2/apispec API = https://mobility.api.opendatahub.testingmachine.eu/v2
The reference system will be adapted, I start another issue for that.
@Piiit @bertolla for me it is OK. In the swagger, I can't do tests since I can't insert values in the required input boxes...
@rcavaliere The swagger has been fixed now
@Piiit for me it is fine. If @bertolla has nothing more to comment, we can put this in production.
Since Roberto has tested this issue we can move it on production.
srid = 4326
(another user story will be added to use PostGIS functions to generate arbitrary output, like geojson for instance)