sozialhelden / wheelmap-classic

:wheelchair: Legacy "classic" wheelmap.org (deprecated)
http://www.wheelmap.org
GNU Affero General Public License v3.0
47 stars 16 forks source link

Add/Update place types (key/value-pairs) = categories #54

Closed holgerd closed 7 years ago

holgerd commented 8 years ago

Some place types are used in OpenStreetMap but can not be used in Wheelmap until now. Some have changed.

https://docs.google.com/spreadsheets/d/12yuBoD8HNaC0sMH3JgLQlImz8NOMcaYgY0kRQpMDlSQ/edit?usp=sharing

Neue Ortstypen für die Wheelmap.xlsx

holgerd commented 8 years ago

Related to this there is a suggestion from OSM users https://lists.openstreetmap.org/pipermail/talk-de/2015-November/112250.html

lennerd commented 8 years ago

Everything is nearly prepared. There is one bigger step missing: the icon sprite file.

All our apps (iPhone, Android and Windows Phone) are using this file to show icons on the markers. If we add icons to this spirte, the position of the icons inside the sprite will change. As all the apps are propably hardcoding the icon positions, it would break the icons representation.

So we need a smarter way to add new icons and also be sure that our mobile apps are capable of displaying them. Maybe we can add information to our API. Open for discussion this is.

christoph-buente commented 8 years ago

From what i know: There is no sprite file, but a zip file with alle the markers in it.

lennerd commented 8 years ago

Yes, but I'm not sure, if the Android and iPhone are still using them. The Windows Phone App is using the sprite file though.

christoph-buente commented 8 years ago

What sprite? This is not delivered by the api anyways

lennerd commented 8 years ago

As far as I know, they use the sprite file from the web application.

christoph-buente commented 8 years ago

Where is this file, who created it, is it in version control?

christoph-buente commented 8 years ago

I think api clients fetch the icons per node type from the api

{ "id":23, "identifier":"hardware", "icon":"/images/icons/wrench.png", "localized_name":"Eisenwarenladen", "category":{ "id": 1, "identifier": "shopping" }

lennerd commented 8 years ago

It's the same file we use for our icons. https://github.com/sozialhelden/wheelmap/blob/master/public/icons/icon-sprite.png

lennerd commented 8 years ago

The Windows Phone App is pretty new. As I said, I'm not absoluty sure about this.

christoph-buente commented 8 years ago

I'm pretty sure, this file is not exposed by the api. If windows phone is using it, some one gave it to the developers ...

lennerd commented 8 years ago

It's not exposed right. But I think we were stuck with the icons and decided to use the sprite file from our server. I asked Raul, Jonas and Holger. Let's see, what they can find out.

holgerd commented 8 years ago

Note: "localized_name":"Eisenwarenladen", is needed to avoid app update.

holgerd commented 8 years ago
lennerd commented 8 years ago

I had a call with @RaphaelHeber to discuss the icon implementation. He will contact me on Friday with some information about the icon implementation in every app. At the moment it looks like every app is using the API as favored. So adding new node types should be no bigger deal.

I also mentioned a solution to have a more stable icon path. At the moment we only send the icon file name which needs some hard coded information in the apps. Using the API metadata section could be good way to send the correct icon_path without adding breaking changes. This will also add the possibility to let the apps use a CDN to request icons.

{
    "meta": {
        "icon_path": "http://assets1.wheelmap.org/icons"
    },
    "node_types": [
        {
            "id": 1,
            "identifier": "bicycle_rental",
            "category_id": 1,
            "category": {
                "id": 1,
                "identifier": "public_transfer"
            },
            "localized_name": "Fahrradvermietung",
            "icon": "cycling.png"
        }
    ]
}

I will add this as soon as we added the new node types.

holgerd commented 8 years ago

@lennerd any update on this? Did @RaphaelHeber give you feedback?

lennerd commented 8 years ago

Yes, he did. There are a few little things we need to change in the Windows and Android App. I need to discuss this with Jonas the next days (maybe friday), to see if we can buy some resources to change them.

Windows: Icons are selected but not downloaded from the API. The Windows Phone is using an old ZIP file approach which I want to get rid of.

Android: Icons are not downloaded from the API. I'm not quite sure where the icons are coming from instead, but maybe @RaphaelHeber can add details here.

RaphaelHeber commented 8 years ago

I'll talk to Tim and provide more details regarding this topic until Friday.

On Wed, Jan 6, 2016 at 10:03 AM, Lennart Hildebrandt < notifications@github.com> wrote:

Yes, he did. There are a few little things we need to change in the Windows and Android App. I need to discuss this with Jonas the next days (maybe friday), to see if we can buy some resources to change the apps.

Windows: Icons are selected but not downloaded from the API. The Windows Phone is using an old ZIP file approach which I want to get rid of.

Android: Icons are not downloaded from the API. I'm not quite sure where the icons are coming from instead, but maybe @RaphaelHeber https://github.com/RaphaelHeber can add details here.

— Reply to this email directly or view it on GitHub https://github.com/sozialhelden/wheelmap/issues/54#issuecomment-169271114 .

holgerd commented 8 years ago

@RaphaelHeber any updates on this?

RaphaelHeber commented 8 years ago

@holgerd I didn't receive feedback from Tim yet - I will definitely get back to you on Friday. I apologize for the delay!

holgerd commented 8 years ago

@RaphaelHeber any updates on this?

RaphaelHeber commented 8 years ago

Android: The icons have been downloaded from the API once and are hard coded within the app.

holgerd commented 8 years ago

Status: Sozialhelden are waiting for SMF to estimate the cost to implement the icon handling in the apps. ("Bitte Aufwand schätzen, dass alle Apps auf die gleiche Art und Weise die Kategorien, Übersetzungen und Icons ohne App-Update von den Servern aus der API ziehen.")

holgerd commented 8 years ago

Plan: SMF will update Android App. Result: Only one way all apps get category icons.

Anpassung der API Alle Apps rufen die Kategorie-Icons über die folgende API ab: http://wheelmap.org/api/assets Anpassungen der API in der Android App

lennerd commented 8 years ago

I will try to post information about next step for @1000miles today or tomorrow.

1000miles commented 8 years ago

The node-types index page is affected by the error messages of currently removed/missing poi translations, this is why the statistics are shifted and don't appear within the 980px width.

On staging server:

node_types_missing_translations_17032016

Should be like this:

00000052

1000miles commented 8 years ago

Welcome back! Happy to get input. Ping @lennerd :)

holgerd commented 8 years ago

What is the status of this @lennerd ?

lennerd commented 8 years ago

Can be closed in favor of #211 and #210 and others to come.

holgerd commented 8 years ago

since this refers to the icon list, please leave it open until I tested it all.

holgerd commented 8 years ago

btw: I can already see the new node types on https://staging.wheelmap.org/node_types

lennerd commented 8 years ago

Yes, but this is not intended. I once tried to have the new node types on Staging, but changes were not merged or completed. The database is still filled with the new node types but without any POIs, as we do not have any sync with the OSM on Staging. A db reset would remove them again.

Svenyo commented 8 years ago

@1000miles cc @holgerd The translations are now ready, meaning: most important languages are up to date with 100%: These are: English (source), German, Russian, French, Spanish, Japanese, Chinese (Taiwan), Swedish. Most other languages have been updated as well, even if they are not ready in the full 100%. Still: please make a full update of all active languages when you implement the node types.

1000miles commented 8 years ago

@holgerd Since this ticket has been created on 4 Nov 2015, I am not so sure about the exact left task here, for example some categories might have been added meanwhile?

Questions:

holgerd commented 8 years ago

I removed the tasks which are not directly related to this:

holgerd commented 8 years ago

@1000miles The goal is that the new categories shall be usable in Wheelmap.

As far as I understand this requires translations and icons, both are missing now on staging.wheelmap.org/node_types.

We prepared translations (in Transifex) and icon-URLs (in the Google Spreadsheet).

What else do you need?

holgerd commented 8 years ago

@1000miles Also, I think the OSM-import and export will be affected when we introduce new categories.

1000miles commented 8 years ago

@holgerd

Thank you for your clean up and task update. Now it is clear. Alright, then I will go ahead with this ticket.

P.S. We discussed it internally here and came to the conclusion that we should introduce the new categories before the new production env is going online, this way we can see in advance if and what breaks with the new categories.

1000miles commented 7 years ago

Last Update: Fr, 2016-11-25

Related PR:

1000miles commented 7 years ago

@holgerd cc @Svenyo & @karolinamakaruk

The new categories leisure, health, employment agency, misc & shopping are deployed on staging and can be reviewed.

karolinamakaruk commented 7 years ago

cc @holgerd

lennerd commented 7 years ago

This is the result from a very early try of importing new node types on Staging. This does not appear on master as long as the imports are running through without errors. I'm not 100 % sure what would fix this, but maybe resetting the database completely should fix it.

1000miles commented 7 years ago

Thanks @karolinamakaruk for reporting & @lennerd for short explanation.

So from what we can see now only following categories exist twice when creating new categories as a user:

@schultyy and me will check and see what is best to fix this.

1000miles commented 7 years ago

@karolinamakaruk cc @lennerd @holgerd

Tasks we have done:

Status: fixed!

screen shot 2016-11-29 at 15 08 16

1000miles commented 7 years ago

Closed. Deployed on production with release: https://github.com/sozialhelden/wheelmap/releases/tag/production-20161129150628.