<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Michael,<br>
<br>
Nice work! If you're interested in extending the OCM integration
at all you could consider:<br>
<ul>
<li>Add &includecomments=true to the API call and you will
get a UserComments list for locations where people have left
check-in comments, you will also get a MediaItems list when
people have added photos. <br>
</li>
<ul>
<li>Example with lots of comments:
<a class="moz-txt-link-freetext" href="http://api.openchargemap.io/v2/poi/?chargepointid=5546&includecomments=true">http://api.openchargemap.io/v2/poi/?chargepointid=5546&includecomments=true</a>
<br>
</li>
<li>Example with several images:
<a class="moz-txt-link-freetext" href="http://api.openchargemap.io/v2/poi/?chargepointid=23178&includecomments=true">http://api.openchargemap.io/v2/poi/?chargepointid=23178&includecomments=true</a></li>
</ul>
<li>You could add basic buttons to edit, comment and uploads
photos. These would need to launch a browser activity with the
appropriate URL</li>
<ul>
<li>Edit: <span style="color: rgb(199, 37, 78); font-family:
Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
17.142858505249px; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(249, 242,
244);"><a class="moz-txt-link-freetext" href="http://openchargemap.org/site/poi/edit/">http://openchargemap.org/site/poi/edit/</a>{OCM-ID}</span></li>
<li>Add Comment: <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 17.142858505249px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(249, 242,
244);"><a class="moz-txt-link-freetext" href="http://openchargemap.org/site/poi/addcomment/">http://openchargemap.org/site/poi/addcomment/</a>{OCM-ID}</span></li>
<li>Add Photo: <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 17.142858505249px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(249, 242,
244);"><a class="moz-txt-link-freetext" href="http://openchargemap.org/site/poi/addmediaitem/">http://openchargemap.org/site/poi/addmediaitem/</a>{OCM-ID}</span></li>
<li>Add A New Location (bit more complex an demanding on the
browser): <span style="color: rgb(199, 37, 78);
font-family: Menlo, Monaco, Consolas, 'Courier New',
monospace; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 17.142858505249px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(249, 242,
244);"><a class="moz-txt-link-freetext" href="http://openchargemap.org/site/poi/add">http://openchargemap.org/site/poi/add</a></span></li>
</ul>
</ul>
I would invalidate the cache a bit more frequently than 4 weeks
(depending on what it's caching). In regions where OCM is popular
we would have a number of POI updates every day. I don't know if
the app informs the user they're seeing cached data and lets them
do anything about it?<br>
<br>
On a tanget, we do have an experimental (subject to change) API
call for smaller POI result sets:
<a class="moz-txt-link-freetext" href="http://api.openchargemap.io/v2/compactpoi/">http://api.openchargemap.io/v2/compactpoi/</a> it's the same as the
/poi call in terms of filters but it returns a much more concise
result set. Might be worth looking at.<br>
<br>
Best regards,<br>
Christopher Cook<br>
<br>
On 01/02/2015 06:17, Michael Balzer wrote:<br>
</div>
<blockquote cite="mid:54CD548B.7060803@expeedo.de" type="cite">Hi
everyone,
<br>
<br>
I fixed the 2.3 compatibility issue. Turned out it was in fact a
cache error combined with a RAM issue.
<br>
<br>
Test APK release can be downloaded from:
<br>
<a class="moz-txt-link-freetext" href="http://dexters-web.de/f/tw/oVMS-release-3.3.1.apk">http://dexters-web.de/f/tw/oVMS-release-3.3.1.apk</a>
<br>
<br>
Github kept telling me "auth error", so I created a pull request
and merged it myself =>
<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/openvehicles/Open-Vehicle-Android/commits/master">https://github.com/openvehicles/Open-Vehicle-Android/commits/master</a>
<br>
<br>
This includes...
<br>
<br>
Version 3.3.1: …
<br>
Michael Balzer authored 6 minutes ago
<br>
<br>
- Fixed OCM region caching, added cache validation based on time:
<br>
cache reload triggered once every 4 weeks
<br>
- Added OCM maxresults configuration (invalidates cache)
<br>
(+ changed OCM settings layout to TableLayout)
<br>
- Switched OCM JSON parsing to GSON library to reduce RAM usage;
<br>
now >500 chargepoints loadable on Android 2.3 devices again
<br>
- Implemented OCM filtering by vehicle range
<br>
<br>
Version 3.2.3: …
<br>
Michael Balzer authored 14 days ago
<br>
<br>
- OCM API update: fixes missing stations, missing detail data
<br>
and station address encoding issues
<br>
- USSD code dialog is now text field allowing "*" and "#",
<br>
default "*100#" (account balance query in most networks)
<br>
- 12V battery state display (car info)
<br>
- Renault Twizy: "Homelink" gets "Profile" and extended by
"Default"
<br>
<br>
<br>
Testing & feedback is welcome :-)
<br>
<br>
Regards,
<br>
Michael
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
</body>
</html>