Problem getting address information (Street, city, State, etc.). With the help of RevereGeocode
I have the following code. Get the values of latitude and longitude very well. Can't seem to get to the street, city, State, zip code, country or countries to return code information. all appear as "null".
Any help would be greatly appreciated. Thank you
------------------------------------------------------------
' Public Sub locationUpdated (LocationProvider provider, a place)
{
If (location.isValid ())
{
Latitude = location.getQualifiedCoordinates () .getLatitude ();
Longitude = location.getQualifiedCoordinates () .getLongitude ();
altitude = location.getQualifiedCoordinates () .getAltitude ();
Speed = location.getSpeed ();
Try
{
int lv_lat_addr = (int)(latitude * 100000);
int lv_long_addr = (int)(longitude * 100000);
AddressInfo addrInfo = null;
Landmark [] results = Locator.reverseGeocode (lv_lat_addr, lv_long_addr, Locator.ADDRESS);
If (results! = null & results.length > 0)
{
addrInfo = results [0] .getAddressInfo ();
Street = addrInfo.getField (AddressInfo.STREET);
City = addrInfo.getField (AddressInfo.CITY);
State = addrInfo.getField (AddressInfo.STATE);
Zip_code = addrInfo.getField (AddressInfo.POSTAL_CODE);
country = addrInfo.getField (AddressInfo.COUNTRY);
country_code = addrInfo.getField (AddressInfo.COUNTRY_CODE);
}
}
catch (lex LocatorException)
{ }
}
}
Code work very well. It seems that it takes just a little more time to get information address it does the real lat and long. Discovered this by accident when I'm distracted talking to a neighbor and did not test immediately after that I started by app.
Tags: BlackBerry Developers
Similar Questions
-
State machine with the help of event
Hello everyone,
I have a question on how to achieve the "Timeout". In the diagram below, you can see 2 different situation:
1. in the 1st case, I used the state machine, it starts in State 1, that contains a case of event. From there, it will first be determined, if the input value has changed in 10 seconds, if it didn't, the state machine will go to State 2, if it is changed, will also be determined, if the value equal to 3, if so, input the distributor of State will in State 3, if not, go back to the State 1. (this VI I've done it before, you can take a look at the attachment).
2. my question is in the 2nd case. He also started the State 1. Here, the input value can also be changed (once or several times) or not. If the value has not changed within 10 s, or even if it's been changed many times within 10 seconds, but it was never equal to 3, the state machine will go to State 2. only when the value of the entry within 10 seconds equal to 3, he can jump to State 3.
This problem, I do not know how to solve, everyone has no idea or improve methods?
Thank you very much!!
My bad, dint tested before posting (in addition to kills confidence)...!
Let me know, if it works this time...!
-
Can Hello anyone help?
After you configure Subversion in Dreamweaver, I get this error again!
SVN: 155021 #. You cannot update this file with the help of Dreamweaver Subversion integration because a new Subversion client application on your machine has made updates to the file Subversion meta data. For more information about this issue, see http://www.adobe.com/go/dw_svn_en.
even after following the instructions http://www.Adobe.com/go/dw_svn_en Download the extension, python change the var in windows to say «;» C:\Python26'
with & without quotes, with or without; before C
command > comparability of Subversion to get the following error "the Conversion process has failed. Please make sure you have Python installed and you check Python PATH parameter'
I managed to get all the files after the installation, I locked, unlocked and commit a file to test fact so that was all works well, the only part I'm not retrieves the latest version, this is because Subversion is 1.6.2 and dreamweaver must revert to the version 1.4.5 on local to work, the compile someone at - it an idea what to try next in order to make it work?
Just a reminder!
- I configure Subversion through guidelines on http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WS80FE60AC-15F8-45a2-842E-52D29F540FED. html
- I managed to get the latest SVN version
- Lock, unlock and commit a file
- Installed Python in C:\Python26 change the path in windows system properties > advanced > Environment Variables > system variables > New > Python =; C:\Python26 also C:\Python26
- I also tried the same thing in the User Variables
- Installed the extension DW Subversion compatibility
Tried to run the compatibly with the command > Subversion comparability in DW
Welcome any suggestion to solve this?
Hello
There has been a lot of problems using svn with dw, and I know many people who have stopped trying to operate correctly.
As much as I know dw will not work with newer versions of svn (over 1.5), and even then, there are a lot of problems, a possible solution is to try subweaver (at- http://code.google.com/p/subweaver/ ), as this has solved some of the problems associated with the use of tsvn dw environment.
PZ
-
After I open a document using Adobe reader DC and want to save it with the help of Save as when I try to open this operation all I get is an empty windo saying save as. This problem just started, note I'm on Windows 7 Prof
Hi sgodwin2468,
Make sure that Acrobat Reader DC is updated Release Notes | Adobe Acrobat, Reader.
If the problem persists, try the solution below.
The default "save under" Acrobat/Reader DC dialog box is different from the dialogue box you had in earlier versions of Acrobat/Reader, it also allows you to record in the clouds and previous locations that you saved the files. It is possible that when Acrobat/Reader tries to connect to the 'cloud', it runs into problems. You can try to disable this feature to see if this brings your backup in the back of the box: open Acrobat Preferences, then go to the "General" category and uncheck "show the online storage when you save files:
Kind regards
Nicos
-
My daughter has a Spanish class this is why we have installed a panel of Spanish key for that topic. I loaded Microsoft steady state to control what she uses, changes, etc... make his story on the computer. With the help of most all the restrictions that she does not see its Spanish keyboard. How to activate the Spanish keyboard while steady state is to limit what she can get. We want only that she go to his school work, loaded on the hard disk and not much more. The Spanish keyboard is essential for this class.
Microsoft SteadyState has been abandoned and is no longer supported.
-
I published my site to Business Catalyst and purchased and installation by area, but the site can be seen only with the help of a search engine. The site is seen when I type the url address, but can not find with search engines.
Hello
I suggest you sign upward to Google Webmaster tools (free) and check your site (directions are in the webmaster tools) and
also consider joining Google analytic (also free). Analytical will allow you to 'see' who is visiting your site and how they experience through research, order the seizure of the URL, or through the links, etc. Also from where they come, how much per day, etc. Lots of good information.
In addition, through this document by google
Check the performance of your site - webmaster help search
Let me know if you have any question.
-
I tried enabling to TIS using nodes of property for the appropriate channel and by disabling the TIS for strings, I don't want to use. When I do that, I get the following error:
niScope read Cluster.vi:1
internal software error has occurred in the extended software. Please contact the support of National Instruments. Name of the component: nihsdru
File name: p:\Measurements\highSpeedDigitizers\hsd\driver\trunk\1.10\source\redirection\tHardware.cpp
Line number: 1038State code:-223425
Any ideas what to do?
Thank you, but I managed to fix it with the help of a few colleagues.
-
I am trying to install a wintv950q tv. tuner. on my computer, I get massege on framework arror net incompatble with the privious version. I have IE8. onmy computer? How can I fix that?
Hello Tommy275,
Thank you for your message. It is a known problem that occurs when you try to install the .NET Framework 2.0 on a computer on which .NET Framework 2.0 Service Pack 1 installed.To correct this problem, you must perform the steps in the link below, these steps are quite complex. If you have any questions regarding the procedure, please let us know and we will help you in any way we can.Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
Having problems with the help of web camera program does not work when I click it. don't know what to do. Please help thanks.
Hello
Right click on the shortcut tab icon - properties - look on the target line to see where and what type of program
is supposed to work.You will probably need to reload the drivers of the device and any camera control software.
Login as an administrator.
Double-click Control Panel / Device Manager - Imaging - writing down of the brand and model of camera.
on this subject and on the tab of the driver is version. Now, click on update drivers (who are unable to do anything as MS
is far behind the pilots of certification). RIGHT click on the camera - UNINSTALL - REBOOT - it
will update the driver stack.Now, go to the system manufacturer's website and download the latest driver for the camera and the other related camera
software (if not more recent get the same).Download - SAVE - go to them and RIGHT CLICK - RUN AS ADMIN - reboot after each driver.
Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHow to install a device driver in Vista Device Manager
http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.htmlThen let windows updates on however prevent loading of drivers who are often older than the
those that you have installed. If updates suggests a pilot and then HIDE it and watch manually to see if their
really is a more recent version (at the time system manufacturer and the sites of the manufacturer of the device).How to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspxI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
With the help of the network location and mapped a drive to the server FTP off site; during the transfer of very large amounts of the login information is always lost. Computer power settings are configured to not to do no matter what, I'm assuming that the ftp server can publish a scenerio timeout but is there a way for my computer and windows to restart the file transfer?
Hello
Thanks for posting your question in the Microsoft Community forums.I see from the description of the problem, you have a problem with networking on the FTP server.The question you posted would be better suited in the Technet Forums. I would post the query in the link below.http://social.technet.Microsoft.com/forums/en/w7itpronetworking/threads
Hope this information helps you. If you need additional help or information on Windows, I'll be happy to help you. We, at tender Microsoft to excellence. -
problem with the help of the conditional formatting on a cell that is defined as the percentage
Hi all
I am facing a problem with the help of the conditional formatting on a cell that is defined as the percentage.
I am using beaches for example:
is equal to or greater than 10% - green color
5%-10%-yellow
less than or equal to 5%-color red
the problem is that keeps the value 10% get yellow color when it should get green.
i thought that is a rounding issue but when I change the definitions of the cell to learn more decimal places I see this part of the percentage 9.65% and some of them are 10.00% and they are both colored in yellow.
I also tried to change the way range of 6 to 9%, but values between 9.65% or 5.5% are not colored.
I really enjoy your help!
You know the reason and the solution.
change the format of the column and go or add a column more with decimal and opt for conditional and hide report.
Thank you
-
Hello!
I m facing a problem with the help of oraext: query-database.
In my transformation im try the following (Simplified):
How to get the correct value when you use oraext:query - database?<xsl:template match="*"> <xsl:variable sqlQuery="select ....."/> <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/> <xsl:choose> <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0"> <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/> </xsl:when> <xsl:otherwise> <xsl:value-of select"some other val"/> </xsl:otherwise> </xsl:choose> </xsl:template> {code} This always results in +some+ +other+ +val+ !! I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected. {code} <xsl:template match="*"> <xsl:variable sqlQuery=select ....."/> <xsl:variable name="storeSec"> <ROWSET> <ROW num="1"> <STORE_PART_SECTION>A100</STORE_PART_SECTION> </ROW> <ROW num="2"> <STORE_PART_SECTION>XXm</STORE_PART_SECTION> </ROW> </ROWSET> </xsl:variable> <xsl:choose> <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0"> <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/> </xsl:when> <xsl:otherwise> <xsl:value-of select"some other val"/> </xsl:otherwise> </xsl:choose> </xsl:template>
How should you exit? Several item ID with each having a value of the result set?
If Yes, then you can try following: -
How can I get the name of rulefiles in application with the help of custom java code.
Hello.
I want to get the names of rulefiles of analytical service with the help of java api.
How can I get the name of rulefiles. What api should I use for this problem?Hello
IEssCube.getOlapFileObjects () api allows you to retrieve files of rules.
Insert this code snipid in your code, it will list all the rules files.IEssCube cube = olapSvr.getApplication("Sample").getCube ("Basic");
ITR IEssIterator = cube.getOlapFileObjects (IEssOlapFileObject.TYPE_RULES);
RFS [] IEssBaseObject = itr.getAll ();
System.out.println ("rule file count:" + rfs.length);
for (int i = 0; i)< rfs.length;="" i++)="">
System.out.println ("RuleFile" + i + ":" + ((EssOlapFileObject)rfs). getName() ' ");
}You can also list the data files and other objects in file by changing the IEssOlapFileObject.TYPE in getOlapFileObjects()
Concerning
Rajeev Singh -
Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.
maryml wrote:
Try to copy a text to paste in another. When I double tap, as I always have, all I get is a bubble with icons on it. With the help of OS 10.0.2.
Press and hold on the text and wait for the copy/more pop up.
-
Question
get a dotted line around .swf files in my flash site now. This is new from Firefox 3. With the help of 4 on a MacBookPro. tried the fix "style no outline. does not work. any help?Ah, quite understand now that I added to my doc html
< style type = "text/css" >
{body
background-color: #FFF;
}
"'object {outline: none ;}"} '< / style >
Maybe you are looking for
-
Installation of Win XP Home on Satellite M70-122 (PSM70E)
I want to install Win XP Home on my Satellite M70-122 (PSM70E) (after formatting).This is the first time that I do this. When I restart the computer when all, Win XP and antivirus, I didn't hear no voice, just bleep. There are the same that I was sea
-
OK, I followed the appropriate for a Xbox 360 controller installation procedures, obtained the file from the internet site http://www.microsoft.com/hardware/download/download.aspx?category=Gaming&type=Gaming&sku=JR9-00001, and I installed it as indic
-
Trying to access local resources in the RDS, the resources of the user session only 1 shows
I'm developing an application to be able to copy files to the local drive of the user to a RD. I Remote Desktop of the user defined options to put their C: drives the RD session on two remote computers. When I connect the server from a remote compu
-
Unable to connect to Hotmail account as the password is expired.
original title: Greetings from John Nelson! Greetings from John Nelson! When I reset my password to my Hotmail emailE-mail address is removed from the privacy *. I must have clicked on the button that reads please stopthe use of this password after 7
-
I have no sound after you install a service pack for Windows Vista
I have installed the latest service pack for Windows Vista, and now I have no sound...