Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attribution data. #125

Closed
jklmnn opened this issue Jun 22, 2016 · 19 comments
Closed

Add attribution data. #125

jklmnn opened this issue Jun 22, 2016 · 19 comments

Comments

@jklmnn
Copy link
Member

jklmnn commented Jun 22, 2016

Add attribution data to each city.

@sibbl
Copy link
Contributor

sibbl commented Jun 22, 2016

To move the conversation from slack to this issue, here's a short summary of my proposal:

I'd suggest to add an optional field attribution to each city:

"attribution": {
    "name": "string",
    "url": "string"
}

For simplicity I'd only add two fields name (required) and url (optional). I'd just leave it very basic as the content might change per city and name should be as generic as possible so that we can add license names, copyright holders, creators etc. If a URL to a license or a specific site is available, it can be added as well.

Each app and the website should be updated as well, maybe we can make the data source a bit more prominent generally as the first question when someone uses the app the first time often appears to be "where do you get the data from?".

@kiliankoe
Copy link
Member

How do you guys suggest we should display this in the apps? Any good ideas?

@jklmnn
Copy link
Member Author

jklmnn commented Jun 22, 2016

I think displaying in the apps can be app specific. I would add it to the about page in my app.
On the website I would add it to the licenses.
EDIT: I would use a add a specific license string to the attribution object since a specific license is usually given.
EDIT2: Example:

"attribution": {
    "name": "string",
    "url": "string",
    "license":"string"
}

@jklmnn
Copy link
Member Author

jklmnn commented Jun 27, 2016

Do we want to add this to:

  • index:
    • Pro: all attributions without loading all cities
    • Con: attribution not bound directly to city data
  • city data:
    • Pro: attribution directly bound to city data
    • Con: need to load all cities to get all attribution data
  • both:
    • Pro: both of other pros, none of their cons
    • Con: redundancy

?

@kiliankoe
Copy link
Member

What about in the index, but for each city? I though that was the general idea all along?

{
  "api_version": "1.0",
  "cities": {
    "Bonn": {
      "active_support": false,
      "coords": {
        "lat": 50.73438,
        "lng": 7.09548
      },
      "name": "Bonn",
      "source": "http://www.bcp-bonn.de",
      "url": "http://www.bcp-bonn.de",
      "attribution": {
        "name": "...",
        "url": "...",
        "license": "..."
      }
    },
    "Dresden": {
      "active_support": true,
      "coords": {
        "lat": 51.05089,
        "lng": 13.73832
      },
      "name": "Dresden",
      "source": "https://apps.dresden.de/ords/f?p=1110",
      "url": "https://www.dresden.de/parken",
      "attribution": {
        "name": "...",
        "url": "...",
        "license": "..."
      }
    },
    [...]

@mandsch
Copy link

mandsch commented Jun 28, 2016

Hi,
I'm in charge of providing the data for a city and just wanted to add my 2ct to the discussion. When using data provided under dl-de-by-20, the attribution shall be shown when the data is shown. For the map I would expect to find it in the attribution control (e.g. in leaflet or OL), for the list view I guess a similar place should be available or (if easier to implement) on each detail view of a parking lot.

@sibbl
Copy link
Contributor

sibbl commented Jun 28, 2016

  1. I still don't get the difference between name and license and why we don't put it in one field that's generic enough to include everything we need there instead of splitting and up and ending in the discussion on what to put into name and into license for new data sources.
  2. in the apps, I'd either put it on the map (like @mandsch said) or show an information/details icon on the map if there's not enough space. Currently I show the cities and URLs in the "more info" popup under "where's the data from" but placing it more prominent is a good idea I think.
  3. For the data format, I vote for index or both. I'd think it's good to have global information available immediately without a request to each city.

@jklmnn
Copy link
Member Author

jklmnn commented Jun 28, 2016

I find the difference between license and name pretty clear, eg the comment above: name: mandsch, license: dl-de-by-20. If no license is provided we could omit this field.
@mandsch: The web page footer contains a link to the license page and the maps have an attribution filed in the lower left corner. I would put all attributions on the license page and also show the attribution for the current city in the lower left corner on the map (only on the map page).
About the Android app: Since I'm currently reworking the design to use the navigation drawer, I'm going to include this in this new design somewhere (probably in the header of the navigation drawer while also showing the current city there.

@mandsch
Copy link

mandsch commented Jun 28, 2016

@jk, thanks for the feedback. That's exactly what I was looking for. Good
to see our data being used in this project.
Am 28.06.2016 16:24 schrieb "JK" [email protected]:

I find the difference between license and name pretty clear, eg the
comment above: name: mandsch, license: dl-de-by-20. If no license is
provided we could omit this field.

@mandsch https://github.com/mandsch: The web page footer contains a
link to the license page and the maps have an attribution filed in the
lower left corner. I would put all attributions on the license page and
also show the attribution for the current city in the lower left corner on
the map (only on the map page).

About the Android app: Since I'm currently reworking the design to use the
navigation drawer, I'm going to include this in this new design somewhere
(probably in the header of the navigation drawer while also showing the
current city there.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#125 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACf4RuCZgH5VaLITKPyWRIQuAVI-Zs8Zks5qQS6YgaJpZM4I7haI
.

@jk
Copy link

jk commented Jun 28, 2016

@mandsch I'm not the one you want to mention. Perhaps you want to try again.

@jklmnn
Copy link
Member Author

jklmnn commented Jun 28, 2016

OT: It seems that GitHub does not include my username into its emails...

@jklmnn
Copy link
Member Author

jklmnn commented Jun 28, 2016

New suggestion:

"attribution":{
  "contributor":"<name/desgination of contributor>",
  "url":"<url of contributor or data source>",
  "license":"<license of data>"
}

@kiliankoe
Copy link
Member

Let's make all fields optional and it won't be such a big deal 😉

@jklmnn
Copy link
Member Author

jklmnn commented Jun 29, 2016

So should attribution then be also optional or empty? ;)

@kiliankoe
Copy link
Member

obviously optional, although it wouldn't make much sense having it with nothing inside 😜

@jklmnn
Copy link
Member Author

jklmnn commented Jun 29, 2016

Well more null than optional since the server defaults to null for not given (optional) values.

@jklmnn
Copy link
Member Author

jklmnn commented Jun 29, 2016

I have created a pull request: #127.

@kiliankoe
Copy link
Member

I'm guessing this can be closed now?

@jklmnn
Copy link
Member Author

jklmnn commented Oct 6, 2016

Yep, since it's merged and online already.

@jklmnn jklmnn closed this as completed Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants