notes.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Subject: mapo-notes
  2. ### NOTES ###
  3. Tizen Geolocation issue :
  4. https://developer.tizen.org/forums/native-application-development/device-gps-testing
  5. ### URLS ###
  6. Select maps source ie :
  7. <select>
  8. <option value="http://www.openstreetmap.org/?&zoom=10&layers=B00FTF&lat={lat}&lon={lon}"
  9. >OpenStreetMap</option>
  10. <option value="http://maps.google.com/maps?&z={z}&ll=${icbm}">
  11. Google maps
  12. </option>
  13. <!--
  14. Rzr :
  15. url = http://rzr.online.fr/geo/${lat},${lon}
  16. OpenStreetMap :
  17. url = "http://www.openstreetmap.org/?&zoom=10&layers=mapnik&lat=${lat}&lon=${lon}"
  18. Wikimapia :
  19. url = http://www.wikimapia.org/#y=${lat}&x=${lon}&z=13&l=2&m=a&v=2
  20. $s = "http://www.wikimapia.org/#y=" . $la . "&x=" . $lo . "&z=13&l=2&m=a&v=2";
  21. printLink( $s , "Wikimapia" );
  22. Nokia :
  23. url = "http://maps.nokia.com/${lat},${lon},16,0,0,normal.day"
  24. $s = "http://maps.nokia.com/";
  25. $s= $s . $la . "," . $lo . ",16,0,0,normal.day";
  26. printLink( $s , "nokia" );
  27. Bing :
  28. url = "http://www.multimap.com/map/browse.cgi?&scale=5000&icon=x&lat=${lat}&lon=${lon}"
  29. $s = "http://www.bing.com/maps/?&lvl=20&sty=b&cp="; //48.128854~-1.638889"
  30. $s = $s . $la . "~" . $lo ;
  31. printLink( $s , "bing" );
  32. MultiMap :
  33. url = "http://www.multimap.com/map/browse.cgi?&scale=5000&icon=x&lat=${lat}&lon=${lon}"
  34. $s = "http://www.multimap.com/map/browse.cgi?&scale=5000&icon=x&lat=" . $la . "&lon=" . $lo ;
  35. printLink( $s , "Multimap" );
  36. Flick (Iframe not allowed) :
  37. url = "http://www.flickr.com/map?&fLat=48.0867&fLon=-1.5772&zl=10"
  38. $s = "http://www.flickr.com/map?&fLat=" . $la . "&fLon=" . $lo;
  39. printLink( $s , "Flickr" );
  40. GoogleMap :
  41. url = "http://maps.google.com/maps?&z=10&ll=${lat},${lon}"
  42. $s = "http://maps.google.com/maps?&z=" . $z . "&ll=" . $icbm ;
  43. printLink( $s , "Google" );
  44. Wiggle :
  45. url = "http://wigle.net/gps/gps/Map/onlinemap/?lat1=${lat}&lon1=${lon}"
  46. $s = "http://wigle.net/gps/gps/Map/onlinemap/?lat1=" . $la . "&lon1=" . $lo ;
  47. printLink( $s , "Wigle" );
  48. Geourl :
  49. url = "http://geourl.org/near?lat=${lat}&long=${lon}"
  50. $s = "http://geourl.org/near?lat=" . $la . "&long=" . $lo ;
  51. printLink( $s , "GeoURL" );
  52. Yahoo :
  53. url = "http://maps.yahoo.com/maps_result?&lat=${lat}&lon=${lon}"
  54. $s = "http://maps.yahoo.com/maps_result?&lat=" . $la . "&lon=" . $lo ;
  55. printLink( $s , "yahoo" );
  56. Frappr :
  57. url = "http://www.frappr.com/eracket&z=16&t=0&cx=${lat}&cy=${lon}"
  58. $s = "http://www.frappr.com/eracket&z=16&t=0&cx=" . $la . "&cy=" . $lo ;
  59. printLink( $s , "frappr");
  60. GamesWW7 :
  61. url = "http://games.ww7.be/tools/formsgeneration/test_map_location_input.php?__map_latitude=${lat}&__map_longitude=${lon}&__map_zoom=18&__map_map_type=Hybrid"
  62. $s="http://games.ww7.be/tools/formsgeneration/test_map_location_input.php?__map_latitude=$la&__map_longitude=$lo&__map_zoom=18&__map_map_type=Hybrid";
  63. printLink( $s , "form");
  64. Flasheart :
  65. url = "http://www.flashearth.com/?&z=12.1&r=0&src=2&lat=${lat}&lon=${lon}"
  66. $s="http://www.flashearth.com/?&z=12.1&r=0&src=2&lat=" . $la . "&lon=" . $lo ;
  67. printLink( $s , "swf");
  68. InformationFreeway :
  69. url = "http://www.InformationFreeway.org/?&zoom=12&layers=0B00F000&lat=${lat}&lon=${lon}"
  70. $s="http://www.InformationFreeway.org/?" . "&zoom=12&layers=0B00F000" . "&lat=" . $la . "&lon=" . $lo ;
  71. printLink( $s , "way");
  72. if ( ! isset($icbm)) {
  73. if ( isset($geo)) { $icbm=$geo; }
  74. else if ( isset( $la) && isset($lo)) { $icbm="" . $la ."," . $lo; }
  75. }
  76. $la = preg_replace( '/(.*),.*/' , '$1' , $icbm );
  77. $lo = preg_replace( '/.*,(.*)/' , '$1' , $icbm );
  78. function decimalToAngle( $u )
  79. {
  80. $d = floor( $u );
  81. $s = ( $u - $d ) * 60. * 60.;
  82. $m = floor( $s / 60 );
  83. $s = floor( $s - 60 * $m );
  84. $t = "" . $d . "d" . $m . "m" . $s . "s";
  85. return $t;
  86. }
  87. function decimalToCoord( $lo , $la )
  88. {
  89. $t="";
  90. $t = $t . ( ( $lo < 0 ) ? "S" : "N" );
  91. if ( $lo < 0 ) { $lo = - ($lo) ; }
  92. $t = $t . decimalToAngle( $lo );
  93. $t = $t . ( ( $la < 0 ) ? "W" : "E" );
  94. if ( $la < 0 ) { $la=-($la);}
  95. $t = $t . decimalToAngle( $la );
  96. return $t;
  97. }
  98. $coord = decimalToCoord( $la , $lo );
  99. <!-- <input type="radio" name="provider" id="wikimapia" onclick="refresh()"
  100. value="http://www.wikimapia.org/#y=${lat}&x=${lon}&z=13&l=2&m=a&v=2"/>
  101. <label for="wikimapia">Wikimapia</label>
  102. <input type="radio" name="provider" id="rzr" onclick="refresh()"
  103. value="http://rzr.online.fr/geo/${lat},${lon}"/>
  104. <label for="rzr">Rzr</label>
  105. <input type="radio" name="provider" id="bing" onclick="refresh()"
  106. value="http://www.bing.com/maps/embed/?v=2&amp;cp=${lat}~${lon}&amp;lvl=5&amp;dir=0&amp;sty=r&amp;form=LMLTEW&amp;emid=bf64cbe7-ff5a-4400-4fdc-cf8e5e8e01e0"/>
  107. <label for="bing">Bing</label>
  108. <input type="radio" name="provider" id="flasheart" onclick="refresh()"
  109. value="http://www.flashearth.com/?&z=12.1&r=0&src=2&lat=${lat}&lon=${lon}"/>
  110. <label for="flasheart">Flashearth</label>
  111. -->
  112. -->