Git Product home page Git Product logo

osmtracker-android's People

Contributors

maglnet avatar nguillaumin avatar

Watchers

 avatar

osmtracker-android's Issues

Support for external Bluetooth GPS

Could you add support for external Bluetooth GPS devices? This works since 
Android 2.0. It would be great. My external GPS device is way better then the 
phone.

Here is an example app that shows that it works:
http://www.androidpit.de/de/android/market/apps/app/googoo.android.btgps/Bluetoo
th-GPS

I tried that and it works without any problems. You just have to go to 
bluetooth settings and pair the device (give for example code 0000). Then an 
application can connect to it and talk with that.

You could maybe ask the developer to give you the code or an tell how to 
implement.

There are also other application that uses this functionality to be able to use 
external gps devices. For example this one: 
http://www.youtube.com/watch?v=wv9QbIx-IL8
or this one
http://www.youtube.com/watch?v=-7BZ2majqho

thanks a lot

Original issue reported on code.google.com by [email protected] on 13 Jun 2010 at 1:34

Add GPS accuracy info in GUI & GPX

Please add GPS accuracy information to the GUI and in the gpx file. 
Location.getAccuracy() divided by 5 or 6 will give an estimated hdop value.

Original issue reported on code.google.com by [email protected] on 26 Mar 2010 at 10:13

Add an "about" screen

Add an "about" screen showing some basic information, including version
number and how to report a bug ;-)

Original issue reported on code.google.com by [email protected] on 2 Mar 2010 at 11:54

Text is cut off when in landscape mode

What steps will reproduce the problem?
1. Use HTC Desire
2. Start OSMTracker
3. Rotate phone to landscape mode

What is the expected output? What do you see instead?
Layout of buttons rotates however the text is obscured in landscape view below 
other buttons overlapping.

What version of the product are you using (See "About" screen)?
v0.4.2

Make/model of your device, and Android version?
HTC Desire - Telstra Branded

Please provide any additional information below.
Alignment of images and text in landscape view must be modified in order to 
display text correctly.

Original issue reported on code.google.com by [email protected] on 19 Jun 2010 at 10:24

Swedish translation

Thank you for a very useful application. Here is the Swedish translation.

Market descriptions:
* Inspirerad av OSMTracker för Windows Mobile. Låter dig spara din färdväg,
notera intressanta punkter (det går även att skapa röstnoteringar) och
exportera dem i GPX-format för att sedan kunna använda dem i Open Street
Map-verktyg som t ex JOSM.

* Spara GPS-spår med anteckningar, ljud och bild, för import till
OpenStreetMap!

Original issue reported on code.google.com by [email protected] on 27 Apr 2010 at 7:55

Attachments:

Buttons stays selected when coming back from a subpage

What steps will reproduce the problem?
1. Use the default layout
2. Click on a page button to access a subpage
3. Click the back button

What is the expected output? What do you see instead?
The button used to navigate to the subpage stays selected.
No button must be selected when coming back from a subpage.

Device info & Android version?
Seems to occur with G1 and development emulator. Never saw it on my phone (HTC 
Magic) or on more recent phones. Maybe it's related to the CPU speed ?


Original issue reported on code.google.com by [email protected] on 19 Jun 2010 at 8:59

Dialog for addresses

There should be a dialog for address recording.
I think something like:
* big buttons with numbers (0-9) and letters (a-f)
-> possibility to open the soft-keyboard for other characters
* button to mark the address for left/right side
*buttons for +1 /-1 (new address point which is one greater or lower then
the previous one

Such a dialog would be great :-)

Original issue reported on code.google.com by [email protected] on 5 Apr 2010 at 4:21

  • Merged into: #16

GPS not turned off after tracking

What steps will reproduce the problem?
1. Start tracking
2. Stop tracking
3. exit app

What is the expected output? What do you see instead?
The GPS should be turned off, gps icon stayed on after the tracking was 
stopped. I tried the osmtracker again and worked ok, but the same problem 
persisted when stopping tracking. 
The only way to get the GPS icon off was to force close the application.


What version of the product are you using? On what operating system?
Motorola Milestone with Android 2.0.1

Please provide any additional information below.
It seems to be an isse with the app not letting go off the gps when not 
tracking or when it is not active.


Original issue reported on code.google.com by [email protected] on 19 Mar 2010 at 3:22

Record picture orientation

Most (if not all) Android devices have an compass built in.

The idea is to record image orientation and to display it later in the JOSM
editor.

Original issue reported on code.google.com by viesturz on 30 Mar 2010 at 9:22

House number tagging

Hello,

it takes a lot effort to tag house numbers.
I usually take pictures and at home I try to 'putit together'. Sometimes I
can't read the number on the picture cause the photo is blurry or fuzzy.
So a function for tagging house numbers would be a very usefull feature.
Something you have the option to enter house number and direction (maybe
left/right of the road or east/west..).

Could also be a very usefull function for the new OpenAdresses.org project.


Original issue reported on code.google.com by [email protected] on 30 Mar 2010 at 7:39

German translation

Sometimes I left the english term where it makes sence. Didn't translate
'waypoint' or 'track' e.g. 'cause those expressions are more common.

I'm not sure about the translation of this sentence because I have never
used it and I got no clue about the meaning of it:
'Allow accuracy info in GPX file, with waypoint name or in a separate tag'

Original issue reported on code.google.com by [email protected] on 7 Apr 2010 at 11:06

Attachments:

Add photo mapping capability

My favoured style of mapping involves taking photos of features as I map,
along with the occasional text note. Would it be possible to add a button
for taking (geotagged) photos and writing them to the output folder?

Original issue reported on code.google.com by a.t.chadwick on 26 Feb 2010 at 11:03

Location of waypoint should be marked at beginning of action

Hey I've been having fun labeling streets as they go by on my daily bus 
rides with the new text annotation feature. It's nice to get the things 
previously traced from aerial imagery properly labeled.

I ran into one problem however -- some of my markers of WAY in the wrong 
place.

The simple problem is this: the location of the waypoint is not marked until 
you FINISH entering the text instead of being marked and then labeled. The 
same happens for the voice notes I think, but the 5 second limit on entering 
data keeps them from being too far off from where you started. (although 
this should probably be changed to. Think about reading off exit numbers on 
a freeway ... 5 seconds could get you a long way off).

Original issue reported on code.google.com by alerque on 31 Mar 2010 at 8:29

FC on HTC Dream, probably rotation issue

v0.3.3 on my ADP1 (running CyanogenMod 4.2.15.1) crashes pretty regularly. 
I started having this problem with this release, but I think it is 
coincidental and probably existed before. The addition of the text note 
feature made me want to use my keyboard, which means I opened the screen 
which means the program gets sent a notice to rotate.

Sometimes this works out ok, but sometimes this makes it die hard. In 
particular if the phone sleeps, waking it up while in landscape mode will 
FC osmtracker every time.

Other crashes occur when trying to open the keyboard after the text dbx is 
already on screen and sometimes on adding other amenities.

Of course the program force closing also kills your entire track log up to 
the point of the crash.

Original issue reported on code.google.com by alerque on 29 Mar 2010 at 8:05

Waypoints in wrong place when marking while moving

What steps will reproduce the problem?
1. Start tracking, move @50+ km/h
2. Mark some waypoints when you drive besides them
3. Compare the real position of waypoints with their position in the track.
Position will be WAY close to the beginning of track (50-200+ m) than it is
in the reality. 

What is the expected output? What do you see instead?
Positions inaccurate to <10-20m, i.e. distance between track points +
inaccurate timing while driving besides something + GPS error.

What version of the product are you using (See "About" screen)?
0.4.1

Make/model of your device, and Android version?
HTC Hero (Scandinavian), original firmware, Android 1.5

Please provide any additional information below.

While using osmtracker, I noticed that my track shapes correspond with that
other people with other hardware record. But waypoints are in the wrong
places sometimes by hundred meters (while driving @90+ km/h and making
voice records what I see around). Therefore I made an experiment.

I have attached file with unaltered track. It is from the street with lots
of level crossings. Each of them goes perpendicular to the street (no Z
shaped at all). I pressed crossing button when my car was over each of
crossings (I missed one). And therefore expected to find all the crossing
well aligned. As you can see, they are shifted up to about 50m from each
other. And this shift I can not explain with GPS errors, or early/late
press of the button.

The only explanation what comes to mind is it takes several seconds for
data from GPS sensor to reach osmtracker. Osmtracker records waypoint at
the last reported position. Which can be way behind the real track. Would
it help to ask GPS sensor for the position NOW when waypoint button is
pressed I have no idea. Would it help to record point less often, I have no
idea too.

Original issue reported on code.google.com by [email protected] on 2 May 2010 at 12:34

Attachments:

The GPS trace data should be regularly stored

It seems that the trace data is only stored at the end, when clicking 
"stop/store tracking".
OSMTracker should however regularly (e.g. all n minutes) its data to SDcard in 
order to prevent complete loss in case of crashes, or power failure.

Original issue reported on code.google.com by [email protected] on 14 Jul 2010 at 7:59

"crashes" with android 2.2

Since Android 2.2 I suffer from strange crashes during tracking. Well the 
program itself does not really crash, but when I'm currently tracking... it 
happens (very often)... that ... next time I look at OSMTracker... it tells me 
it would _not_ track (you see "start tracking" instead of "stop/store 
tracking").

It seems that this always happens, when I loose GPS fixes for a longer time, 
e.g. when going into a building.
The same problem _never_ occured with Android 2.1, so perhaps they've changed 
something there.

Original issue reported on code.google.com by [email protected] on 14 Jul 2010 at 7:57

Fill <hdop> tag in GPX output

GPX format provides a <hdop> tag for track/way points, which means
Horizontal Dilution Of Precision. (see
http://en.wikipedia.org/wiki/Dilution_of_precision_(GPS) ).

This tag is very useful when editing tracks with JOSM (see attached
screenshot) and should be filled with DOP value, for both way point AND
track points.

DOP calculation seems a big mystery ;-) however an approximation could be
calculated from location.getAccuracy(). Using the accuracy to fill the
<hdop> tag could be an user choice, with warning about data validity, as
proposed by oledalgaard.


Original issue reported on code.google.com by [email protected] on 29 Mar 2010 at 8:48

Attachments:

Runtime Exception on G1 (1.6) with custom layout

What steps will reproduce the problem?
1. Load the attached custom layout
2. enter any obstacle
3. tap on warehouse

What is the expected output? What do you see instead?
I expect to be able to log a type of ware house. Instead it crashes with the 
following exception

mBaselineAlignedChildIndex of LinearLayout set to an index that is out of 
bounds.

What version of the product are you using (See "About" screen)?
0.4.2

Make/model of your device, and Android version?
G1 Dev phone with a fresh install with firmware 1.6.

Additional info.
Even if you are not using the custom layout there appears to be an issue on the 
G1 (1.6). Once you tap a button it stays selected if you push the back button. 
I tried this on several G1s all with the same result. However neither of these 
errors occur on a Motorola droid with version 2.1. 

Unfortunately we are donating the G1s to the Humanitarian project in Haiti and 
need it to work on these phones. 

Original issue reported on code.google.com by [email protected] on 18 Jun 2010 at 3:22

Attachments:

Error while parsing XML layout file.

What steps will reproduce the problem?
1. Create the new layout file : 
<?xml version="1.0" encoding="utf-8"?>

<layouts>

    <layout name="root">

        <row>

            <button type="tag" label="Max 30" />

            <button type="tag" label="Max 50" />

            <button type="tag" label="Max 60" />

        </row>

        <row>

            <button type="tag" label="Max 70" />

            <button type="tag" label="Max 80" />

            <button type="tag" label="Max 100" />

        </row>

    </layout>

</layouts>

2. Select it on the settings.


What is the expected output? What do you see instead?
I want to have my new layout but I have this Error message : 
Error while parsing XML layout file. Please revert to default layout.


What version of the product are you using (See "About" screen)?
0.4.2

Make/model of your device, and Android version?
HTC Dream (G1)

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 14 May 2010 at 1:15

Program stays alive when exited via the 'back' button

What steps will reproduce the problem?
1. On the HTC Hero with Android 1.5 and 2.1, the app keeps running even when it 
is not tracking. There is an icon in the titlebar; when dragged down this reads 
'OSMtracker is still running'


What is the expected output? What do you see instead?
I want it to exit on the 'back' button, like all other applications.

What version of the product are you using (See "About" screen)?
Latest.

Make/model of your device, and Android version?
See above.


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 23 Jul 2010 at 8:45

[UI] When tracking, show a notification bar icon

*What steps will reproduce the problem?*

1. Begin tracking in OSM Tracker for Android™

2. Switch to another app, e.g. Camera

*What is the expected output? What do you see instead?*

From other similar apps, such as Open GPS Tracker or GPS Logger for
Android, I'd expect a notification icon in the status bar. Perhaps labelled
with "Tracking: select to add POIs or control tracking". Selecting the
notification would switch back to the UI (possibly going to the top page
discarding any pages above it on the stack).

I guess this means running the logger part of osmtracker-android as a
Service, assuming it's not already running that way.

*What version of the product are you using? On what operating system?*

0.2.1, on Android 1.5 (HTC Hero, Orange UK)

Original issue reported on code.google.com by a.t.chadwick on 26 Feb 2010 at 10:59

Crash when attaching photo

What steps will reproduce the problem?
1. Start Tracking
2. Take photo
3. Attach photo

What is the expected output? What do you see 
instead?
Program crashed. Track is lost. Photo was saved.


What version of the product are you using (See 
"About" screen)?
0.3.5
Motorola Milestone 2.1


Make/model of your device, and Android version?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 4 Apr 2010 at 9:28

Draw OSM map as a background for the track view

Sometimes it is handy to see what streets are already mapped by OSM, to not
dublicate the work.

The best way to achieve this would be to draw the latest OSM map in
background of the track view.

I guess it would involve fetching the tiles from internet and sould be
configurable option. Also in case if the tiles are cached a "remove cache"
button is needed to force loading of newer, updated tiles.

Original issue reported on code.google.com by viesturz on 30 Mar 2010 at 12:24

Draw POIs in the track view

It would be nice to draw icons for the recorded POIs in the track view.
The icons are already there on the buttons.

Original issue reported on code.google.com by viesturz on 30 Mar 2010 at 12:21

  • Blocked on: #8

Does not appear in Market for HTC Tattoo

What steps will reproduce the problem?
1. Search this application in the Market for a HTC Tattoo

What is the expected output? What do you see instead?

It cannot be found, because I think that the applications have to tell any
way that they support this device, or its smaller screen resolution, I am
not sure.

What version of the product are you using (See "About" screen)?

I searched it April 19th 2010.

Make/model of your device, and Android version?

HTC Tattoo, Android 1.6, QVGA 240 x 320

Original issue reported on code.google.com by [email protected] on 20 Apr 2010 at 7:28

Track disapears silently when SD-card is full

What steps will reproduce the problem?
1. Fill your SD card completly e.h with dd
2. Start track
3. Save track, no message appears
4. Search your track on sd, nothing will be there

What is the expected output? What do you see instead?
A message that the Sd card is full, either at stort or at the end with the 
ability to trx again..

What version of the product are you using (See "About" screen)?


Make/model of your device, and Android version?
Nexus One 2.2

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Jun 2010 at 5:13

Buttons never seem to enable

What steps will reproduce the problem?
1. Start application
2. Wait for GPS to get a fix
3. See that buttons are still disabled

What is the expected output? What do you see instead?

I expect the buttons to enable when the GPS gets a fix, but they don't.

What version of the product are you using (See "About" screen)?

0.4.2

Make/model of your device, and Android version?

Nexus One running Android 2.2 (but 2.1 was the same)

Original issue reported on code.google.com by [email protected] on 29 Jun 2010 at 1:05

Photos are not saved to output folder with names other than that in <wpt><link>

(Thanks for adding text annotation and the trace view feature, BTW. Lovely
work, these seem completely fine so far for me at least! It's be nice to
see a cached map as a background for the trace in future releases ;-))

What steps will reproduce the problem?
1. Go out and make a track
2. Take photos while tracking using the osmtracker-android Take Photo button

What is the expected output? What do you see instead?

I expect to find the pictures in the same output folder as the .gpx file.
Instead they're stored as <SDcard-mountpoint>/DCIM/100MEDIA/IMAGnnnn.jpg,
which is the same pathname format that the Camera app on my phone uses
normally. I have to manually locate the files and move them to the right
folder.

Inside the output GPX file, those <wpt>s of <type>Picture</type> have
<link> elements which refer to files of different names to what's been
saved, e.g. 2010-03-26_08-30-52.jpg rather than IMAG0464.jpg. When the GPX
file is opened in JOSM, the waypoint icon looks fine, but when clicked the
dialog is empty, just a small button in the middle (is this supposed to
show the photo?)

TBH, rather than a <link>, I'd be happy with just a directory full of
(geotagged) photos, and a GPX file. AgPifoJ or newer JOSMs work quite well
with this setup IMX. But correct links would be gravy.

What version of the product are you using? On what operating system?

OSMTracker for Android v0.3.3
UK Orange HTC Hero running Android 1.5

Original issue reported on code.google.com by a.t.chadwick on 26 Mar 2010 at 11:19

use GPS time in file names

What steps will reproduce the problem?
1. Record a track
2. Insert voice record

What is the expected output? What do you see instead?
My phone's time is about a minute ahead of GPS time (not yet sure why).
Voice record is written into file with name with _phone's_ time. If I open
gpx with merkaartor, I don't see file's name -- I see only time when voice
record was made. And this time is according to GPS (therefore, differs).
Make several marks per minute and things get very confusing which record is
for which waypoint.

Please, use GPS time for file names. Also, do you support tracks longer
than 24 hours? If not, them maybe the time (without date) is sufficient for
file name inside? These files already are written into subdirectories
containing date in the name.

What version of the product are you using (See "About" screen) ?
0.3.3

Make/model of your device, and Android version?
HTC Hero/ Danish-Norvegian-Swedish version/ stock firmware/ GSM operator:
Omnitel/Lithuania

Original issue reported on code.google.com by [email protected] on 28 Mar 2010 at 9:47

GPX time timezone might be wrong

In the GPX file time is written like
<time>2010-03-29T09:05:35Z</time>
According to http://en.wikipedia.org/wiki/ISO_8601 the Z means it is UTC 
timezone. My phone writes the local time. When making a new Date it will use 
the device default timezone, which for me is not UTC. Converting to and then 
later from long looses the timezone. 

Original issue reported on code.google.com by [email protected] on 29 Mar 2010 at 7:59

Use new JAR library of osmdroid instead of including source code

Since now osmdroid can be used as a library by other project without having to 
copy osmdroid source code into the target project (see 
http://code.google.com/p/osmdroid/issues/detail?id=43 ).

It would be nice to switch the current osmtracker part that uses osmdroid code 
(OSM as background of the track) to use this library and remove any copied code 
from osmdroid.

Original issue reported on code.google.com by [email protected] on 10 Jul 2010 at 8:25

Data loss / crash when OS alarm rings

Any time an alarm pops up while I'm surveying, the program does and my 
tracks are lost.

With the program not being obscured (stopped) only put on pause with a 
transparent popup from the alarm program in foreground, the program 
shouldn't need to die anyway, but it always does. After I stop or snooze the 
alarm the program is gone and I'm back at the home screen.

Track data really needs to be saved incrementally! I've lost several good 
tracks because I left early for somewhere so I could survey on my way only 
to have it clobbered when the alarm for the event I was enroute top pops up. 
Several other program crashes have caused the same thing. While some of 
those bugs have gotten fixed, the data lose problem is pretty much the same.

Original issue reported on code.google.com by alerque on 9 Apr 2010 at 7:31

Parsing error on custom buttons

Tryed to define my own layout.
For test purpose I only configured one button (<button type="tag"
label="highway= \nstop" icon="but_stop.png" />) and left everything else
like the template was except of the icons which I removed.
Getting a parse error. What's wrong with the file? It's UTF8.


Original issue reported on code.google.com by [email protected] on 11 Apr 2010 at 12:09

Attachments:

[UI] Button contrast (themes ?)

As first reported by B. Sieper: The contrast on the button's text is to low
and could be hard to read in certain use cases (track logging on a bright
sunny day).

A quick-fix could be to allow user to chose foreground/background colors of
buttons.

A better-fix could be to use a theme/skin system to allow the user to
choose the best color set depending of use case.


Original issue reported on code.google.com by [email protected] on 2 Mar 2010 at 11:26

User configurable buttons / button pages

Different people map different things: hikers obsess about stiles, gates
and trails; cyclists worry about cycle parking, bike shops, food & water
etc.; motorists about marking, speed restrictions and cameras. What's
useful one day may not be useful the next.

It would be nice to allow the user to select different presets for
different activities (and perhaps countries...). Perhaps similar to the way
JOSM organises its presets online these days?

Original issue reported on code.google.com by a.t.chadwick on 14 Mar 2010 at 10:51

Textual annotations

Would it be possible for osmtracker-android to make text-based annotations
in its GPX output? Can't recall if I've asked this before, apologies if I have.

Interface would be similar to the photo or voice marker setup, I guess,
though with a text dialog.

Original issue reported on code.google.com by a.t.chadwick on 14 Mar 2010 at 10:44

[UI] More button feeedback

*What steps will reproduce the problem?*

1. Begin tracking
2. Press a button to add a POI

*What is the expected output? What do you see instead?*

I'd expect a little more feedback when I perform an action successfully.
Doesn't have to be much: perhaps flashing a short Toast to explain that,
for example, a post_box has been added would be helpful.

*What version of the product are you using? On what operating system?*

Latest UK market place version, 0.2.1 I think.

Original issue reported on code.google.com by a.t.chadwick on 26 Feb 2010 at 11:07

Hardware back button doesn't behave as expected

What steps will reproduce the problem?
1. Start a track
2. Click a button that takes you to a screen of other buttons
3. Hit hardware "back" button.

What is the expected output? What do you see instead?
Expect to return to main screen. App quits instead.

What version of the product are you using? On what operating system?
0.1.0 on HTC Hero Android 1.5

Please provide any additional information below.
This would improve consistency with Android interface.

Original issue reported on code.google.com by [email protected] on 24 Feb 2010 at 10:36

Layouts should be more isolated

The current layout scheme assumes that all the layouts and corresponding
pictures are in the same directory (/layouts). As mentionned by
a.t.chadwick this could cause namespace clashes in case of multiple layouts
using the same name for different images.

The layout system could be improved in order to have better isolation of
each layout. Current suggestions are:
(1) Having each layout into a ZIP file, containing the XML + pictures
(2) Having each layout into a sub-directory of the layout directory

(1) could facilitate layout sharing between users, however zip/unzip
performance should be tested on slow devices.
(2) is not ideal, but is more simple to implement for a first step.

Original issue reported on code.google.com by [email protected] on 8 Apr 2010 at 10:12

Automatic upload to OpenStreetMap

I suggest making the program able to automatically upload the gpx-tracks to 
OSM. The username and password could be set in the settings.
The other OSM-upload settings such as track privacy etc could also be set.

Uploads could be fully automatic or one could be prompted after saving each 
track.
Fully automatic upload would prevent me from having to connect my HTC via the 
data cabel to the pc and upload files individually.

This issue should be Enhancement not Defect (as it seems the issues start out 
as).

Original issue reported on code.google.com by [email protected] on 27 Jun 2010 at 8:22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.