Point of intrests of area from longtitude and latitude

Put your problem here if it does not fit any of the other categories.

Point of intrests of area from longtitude and latitude

Postby zeeshan » Fri Mar 07, 2008 11:18 am

I want to get Point of interest from longitude and latitude in android how can i do this

point of intrests means that all the points which are near to that longitude and latitude ...
Any one can help me ..please

i am working on lbs project
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Top

Postby plusminus » Fri Mar 07, 2008 12:53 pm

Hello zeeshan,

what about this: http://www.geonames.org/maps/reverse-ge ... rbyStreets
It grabs locations near to a given Lat/Lng.

Or do you need more like all "Pizza-Sellers" nearby :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby zeeshan » Fri Mar 07, 2008 1:12 pm

hello plusminus

what i do want is that when i wll provide a zip code (if device is not gps enabled) then it will gives the longitude and latitude

i got the longitude and latitude but ..how can i get it by using zipCode ?



yes your guess is absolutely right i want all POIS of restorants , food centers, macdonalds , kfc all from longitude and latitude ...

can u give me a working example Please ??

waiting for your reply
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Postby plusminus » Fri Mar 07, 2008 4:24 pm

Hello zeeshan,

Zip :arrow: Lat/Lng is called GeoCoding (or ReverseGeoCoding ^^)

There is already is an Class GeoCoder in Android, which is not yet working.
Code: Select all
http://maps.google.com/maps/geo?output=xml&oe=utf-8&q=69198,Germany&key=YOUR_GOOGLE_APP_ID_HERE


That GeoCoder-Class is also used to find nearby business,if it would be working:
http://code.google.com/android/referenc ... coder.html

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Thanks

Postby zeeshan » Mon Mar 10, 2008 6:05 am

if it is not working then what would be the alternate ?Any idea?
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Postby zeeshan » Mon Mar 10, 2008 6:39 am

i test this url but it only retunrs one address in xml why is that ?

?
http://www.geonames.org/maps/reverse-ge ... rbyStreets

Waiting for reply plusminus?
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Top

Postby res » Mon Mar 10, 2008 3:52 pm

Have a look at GmmGeocoder in this topic http://www.anddev.org/geocoder-t904.html
res
Senior Developer
Senior Developer
 
Posts: 146
Joined: Tue Nov 20, 2007 8:14 pm
Location: United States

Postby plusminus » Mon Mar 10, 2008 7:47 pm

zeeshan wrote:i test this url but it only retunrs one address in xml why is that ?

?
http://www.geonames.org/maps/reverse-ge ... rbyStreets

Waiting for reply plusminus?


Thats what it returns with me:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <geonames>
  2.         <streetSegment>
  3. <line>-122.179775 37.452138,-122.180975 37.450738</line>
  4. <distance>0.09</distance>
  5. <cfcc>A41</cfcc>
  6. <name>Roble Ave</name>
  7. <fraddl>601</fraddl>
  8. <fraddr>600</fraddr>
  9. <toaddl>        735</toaddl>
  10. <toaddr>        698</toaddr>
  11. <postalcode>94025</postalcode>
  12. <placename>Menlo Park</placename>
  13. <adminName2>San Mateo</adminName2>
  14. <adminCode1>CA</adminCode1>
  15. <adminName1>California</adminName1>
  16. <countryCode>US</countryCode>
  17. </streetSegment>
  18.         <streetSegment>
  19. <line>-122.180475 37.450338,-122.181075 37.450538</line>
  20. <distance>0.08</distance>
  21. <cfcc>A41</cfcc>
  22. <name>Curtis Way</name>
  23. <fraddl>701</fraddl>
  24. <fraddr>700</fraddr>
  25. <toaddl>        799</toaddl>
  26. <toaddr>        798</toaddr>
  27. <postalcode>94025</postalcode>
  28. <placename>Menlo Park</placename>
  29. <adminName2>San Mateo</adminName2>
  30. <adminCode1>CA</adminCode1>
  31. <adminName1>California</adminName1>
  32. <countryCode>US</countryCode>
  33. </streetSegment>
  34.         <streetSegment>
  35. <line>-122.179775 37.450038,-122.180275 37.449438</line>
  36. <distance>0.11</distance>
  37. <cfcc>A41</cfcc>
  38. <name>Kenwood Dr</name>
  39. <fraddl>601</fraddl>
  40. <fraddr>600</fraddr>
  41. <toaddl>        699</toaddl>
  42. <toaddr>        698</toaddr>
  43. <postalcode>94025</postalcode>
  44. <placename>Menlo Park</placename>
  45. <adminName2>San Mateo</adminName2>
  46. <adminCode1>CA</adminCode1>
  47. <adminName1>California</adminName1>
  48. <countryCode>US</countryCode>
  49. </streetSegment>
  50.         <streetSegment>
  51. <line>-122.178475 37.449238,-122.179775 37.450038</line>
  52. <distance>0.11</distance>
  53. <cfcc>A41</cfcc>
  54. <name>Kenwood Dr</name>
  55. <fraddl>501</fraddl>
  56. <fraddr>500</fraddr>
  57. <toaddl>        599</toaddl>
  58. <toaddr>        598</toaddr>
  59. <postalcode>94025</postalcode>
  60. <placename>Menlo Park</placename>
  61. <adminName2>San Mateo</adminName2>
  62. <adminCode1>CA</adminCode1>
  63. <adminName1>California</adminName1>
  64. <countryCode>US</countryCode>
  65. </streetSegment>
  66.         <streetSegment>
  67. <line>-122.180975 37.450738,-122.181875 37.451238</line>
  68. <distance>0.09</distance>
  69. <cfcc>A41</cfcc>
  70. <name>Curtis St</name>
  71. <fraddl>801</fraddl>
  72. <fraddr>800</fraddr>
  73. <toaddl>        899</toaddl>
  74. <toaddr>        898</toaddr>
  75. <postalcode>94025</postalcode>
  76. <placename>Menlo Park</placename>
  77. <adminName2>San Mateo</adminName2>
  78. <adminCode1>CA</adminCode1>
  79. <adminName1>California</adminName1>
  80. <countryCode>US</countryCode>
  81. </streetSegment>
  82.         <streetSegment>
  83. <line>-122.180975 37.450738,-122.181075 37.450538</line>
  84. <distance>0.09</distance>
  85. <cfcc>A41</cfcc>
  86. <name>Roble Ave</name>
  87. <fraddl>737</fraddl>
  88. <fraddr>700</fraddr>
  89. <toaddl>        747</toaddl>
  90. <toaddr>        728</toaddr>
  91. <postalcode>94025</postalcode>
  92. <placename>Menlo Park</placename>
  93. <adminName2>San Mateo</adminName2>
  94. <adminCode1>CA</adminCode1>
  95. <adminName1>California</adminName1>
  96. <countryCode>US</countryCode>
  97. </streetSegment>
  98.         <streetSegment>
  99. <line>-122.177375 37.450638,-122.179775 37.452138</line>
  100. <distance>0.13</distance>
  101. <cfcc>A31</cfcc>
  102. <name>El Camino Real</name>
  103. <fraddl>501</fraddl>
  104. <fraddr>500</fraddr>
  105. <toaddl>        799</toaddl>
  106. <toaddr>        798</toaddr>
  107. <postalcode>94025</postalcode>
  108. <placename>Menlo Park</placename>
  109. <adminName2>San Mateo</adminName2>
  110. <adminCode1>CA</adminCode1>
  111. <adminName1>California</adminName1>
  112. <countryCode>US</countryCode>
  113. </streetSegment>
  114.         <streetSegment>
  115. <line>-122.179775 37.452138,-122.180675 37.452538</line>
  116. <distance>0.13</distance>
  117. <cfcc>A31</cfcc>
  118. <name>El Camino Real</name>
  119. <fraddl>801</fraddl>
  120. <fraddr>800</fraddr>
  121. <toaddl>        899</toaddl>
  122. <toaddr>        898</toaddr>
  123. <postalcode>94025</postalcode>
  124. <placename>Menlo Park</placename>
  125. <adminName2>San Mateo</adminName2>
  126. <adminCode1>CA</adminCode1>
  127. <adminName1>California</adminName1>
  128. <countryCode>US</countryCode>
  129. </streetSegment>
  130.         <streetSegment>
  131. <line>-122.181075 37.450538,-122.181875 37.449738</line>
  132. <distance>0.11</distance>
  133. <cfcc>A41</cfcc>
  134. <name>Roble Ave</name>
  135. <fraddl>749</fraddl>
  136. <fraddr>730</fraddr>
  137. <toaddl>        799</toaddl>
  138. <toaddr>        798</toaddr>
  139. <postalcode>94025</postalcode>
  140. <placename>Menlo Park</placename>
  141. <adminName2>San Mateo</adminName2>
  142. <adminCode1>CA</adminCode1>
  143. <adminName1>California</adminName1>
  144. <countryCode>US</countryCode>
  145. </streetSegment>
  146.         <streetSegment>
  147. <line>-122.180675 37.452538,-122.181875 37.451238</line>
  148. <distance>0.17</distance>
  149. <cfcc>A41</cfcc>
  150. <name>Live Oak Ave</name>
  151. <fraddl>601</fraddl>
  152. <fraddr>600</fraddr>
  153. <toaddl>        699</toaddl>
  154. <toaddr>        664</toaddr>
  155. <postalcode>94025</postalcode>
  156. <placename>Menlo Park</placename>
  157. <adminName2>San Mateo</adminName2>
  158. <adminCode1>CA</adminCode1>
  159. <adminName1>California</adminName1>
  160. <countryCode>US</countryCode>
  161. </streetSegment>
  162. </geonames>
Parsed in 0.034 seconds, using GeSHi 1.0.8.4


:)
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], MSNbot Media, Yahoo [Bot] and 22 guests