noi-techpark / it.bz.opendatahub.api.mobility-ninja

The new home of the Open Data Hub Mobility API v2
Other
2 stars 0 forks source link

As an external user of the ODH I would like to get from the API also the geometries of the LinkStations #4

Closed rcavaliere closed 4 years ago

rcavaliere commented 4 years ago
Piiit commented 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

Piiit commented 4 years ago

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

rcavaliere commented 4 years ago

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

Piiit commented 4 years ago

@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?

rcavaliere commented 4 years ago

@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?

Piiit commented 4 years ago

@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.

rcavaliere commented 4 years ago

@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...

Piiit commented 4 years ago

@rcavaliere The swagger has been fixed now

rcavaliere commented 4 years ago

@Piiit for me it is fine. If @bertolla has nothing more to comment, we can put this in production.

sseppi commented 4 years ago

Since Roberto has tested this issue we can move it on production.