I'm making a app using the map component. When any marker click the user gets a choice to get information about the marker from wikipedia (if there is a wikipage for that marker). In my first version I just used the webviewer, and it worked fine. But it doesn't really look good to just view the web page, so I thought I try to figure out how to use the Wikipedia API instead.
No, I'm a beginner to all this so the concept of API's are to me not quite clear. Anyway, I like to think I've come quite far (for a complete beginner, that is...). My blocks looks like this:
The upper part of the procedure that sets the web component works fine, It takes the information from the markers title to find the right Wikipedia page. And yes, I DO get the right Wikipedia page for every marker. It looks like this:
Now, I got three problems.
#1. The obvious one. It looks like cr*p. Even if you don't understand Swedish you can see that the text is a mess, even if the relevant info IS there, starting with "ÖL 18" är en runsten i Seby..." (you can compare with the wiki page if you want)
I've tried to fix some things with the text blocks, as you can see, but I guess I have to decode it different? Or use html-tags some how? Or is it the input requests in the "set web1 url" that needs to change?
#2 Images. I want the picture from wiki page in my app. How do I do that?
#3. Redirect. Some wiki pages redirects to other locations, on the webviewer it redirects automatic, but now it looks like this:
were "#OMDIRIGERING" means redirect. How do I call the API to redirect? I was thinking about using the text blocks, something like "If contains text #OMDIRIGERING than, bla, bla, bla" but I hope someone knows a simpler solution!
I understand this Topic is more about the Wikipedia API than Appinventor, but since I'm a beginner and not familiar with any other programming language everything I'm trying to find out about Wiki's API and API's in general is very hard to understand.
Hope someone can help me with this! / Thanks