Accueil > > > GPS - COMMENT TROUVER LES COORDONNÉES D'UN LIEU ET OBTENIR UNE CARTE...
GPS - COMMENT TROUVER LES COORDONNÉES D'UN LIEU ET OBTENIR UNE CARTE...
Information sur la source
Description
/GPS Donne la position GPS d'une ville et un lien vers une carte interactive.
Source
- menu channel {
- GPS:/GPS
- }
-
- alias cF5 {
- /msg $active %bot.msg
- }
-
- alias GPS {
- if ( $1 == $null ) /set %bot-GPS.critere $$?="Entrez une ville ou un code postal"
- else /set %bot-GPS.critere $$1
- if ( %bot-GPS.OQP ) {
- /Echo -at 14,9 $+ - Je suis OQP renouvelez votre demande plus tard.
- }
- else {
- /set %bot-GPS.OQP $true
- /Echo -at 14,9 $+ - Module GPS By Nestor - Un instant je cherche les informations sur %bot-GPS.critere $+ ...
- /sockopen GPS fr.maps.yahoo.com 80
- }
- }
-
- on *:sockopen:GPS:{
- if ($sockerr > 0) {
- /sockclose GPS
- /Echo -at 14,9 $+ - Petit probleme pour avoir les informations... desolé
- %bot-GPS.OQP = $false
- /return
- }
- /sockwrite -n GPS GET http://fr.maps.yahoo.com//?&csz= $+ %bot-GPS.critere $+ &country=fr
- }
-
- on *:sockread:GPS:{
- /var %temp
- if ( $sockerr > 0) {
- /sockclose GPS
- /Echo -at 14,9 $+ - Petit probleme pour avoir les informations... desolé
- /set %bot-GPS.OQP $false
- /return
- }
- /sockread -f %temp
- while ( $sockbr != 0) {
- ;----------------------------------------
- ;----------------------------------------
- ; if ( %temp != $null ) /echo -at $replace( %temp , <, 14< , >, >4 )
- if ( Mémoriser cette adresse isin %temp ) {
- %temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, city= ) - 4 ) )
- %bot-Gps.City = $remove( $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) ), %,0,1,2,3,4,5,6,7,8,9 )
- %temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, slt= ) - 3 ) )
- %bot-Gps.NS = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
- %temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, sln= ) - 3 ) )
- %bot-Gps.EO = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
- %temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, zip= ) - 3 ) )
- %bot-Gps.ZIP = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
- %bot.msg = [GPS] %bot-Gps.City ( $+ %bot-Gps.ZIP $+ ) $iif( %bot-Gps.NS > 0, Nord:, Sud: ) $remove( %bot-Gps.NS, - ) $&
- $iif( %bot-Gps.EO > 0, Est:, Ouest: ) $remove( %bot-Gps.EO, - )
- /echo -at 14,9 $+ %bot.msg
- }
- if ( Version imprimable isin %temp ) && ( alt !isin temp ) {
- %bot-Gps.temp = $remove( %Bot-Gps.temp, <a href=", "> )
- %bot-Gps.temp = $replace( %Bot-Gps.temp, mag=5, mag=2 )
- ; Vous pouvez choisir de ne pas afficher la carte
- /echo -at 14,9 $+ - Carte: 9,14 $+ http://fr.maps.yahoo.com $+ %Bot-Gps.temp $+ 10,9 Clickez sur le lien.
- /run http://fr.maps.yahoo.com $+ %Bot-Gps.temp
- }
- %Bot-Gps.temp = %temp
- ;----------------------------------------
- ;----------------------------------------
- /sockread -f %temp
- }
- }
-
- on *:sockclose:GPS: {
- if ( !%bot-Gps.City ) {
- /Echo -at 14,9 $+ - Je ne trouve rien dans ma base sur %bot-GPS.critere $+ .
- /Echo -at 14,9 $+ - Changer votre critere.
- }
- /echo -at 14,9 $+ - C'est tout pour aujourd'hui.
- /unset %bot-GPS.*
- }
menu channel {
GPS:/GPS
}
alias cF5 {
/msg $active %bot.msg
}
alias GPS {
if ( $1 == $null ) /set %bot-GPS.critere $$?="Entrez une ville ou un code postal"
else /set %bot-GPS.critere $$1
if ( %bot-GPS.OQP ) {
/Echo -at 14,9 $+ - Je suis OQP renouvelez votre demande plus tard.
}
else {
/set %bot-GPS.OQP $true
/Echo -at 14,9 $+ - Module GPS By Nestor - Un instant je cherche les informations sur %bot-GPS.critere $+ ...
/sockopen GPS fr.maps.yahoo.com 80
}
}
on *:sockopen:GPS:{
if ($sockerr > 0) {
/sockclose GPS
/Echo -at 14,9 $+ - Petit probleme pour avoir les informations... desolé
%bot-GPS.OQP = $false
/return
}
/sockwrite -n GPS GET http://fr.maps.yahoo.com//?&csz= $+ %bot-GPS.critere $+ &country=fr
}
on *:sockread:GPS:{
/var %temp
if ( $sockerr > 0) {
/sockclose GPS
/Echo -at 14,9 $+ - Petit probleme pour avoir les informations... desolé
/set %bot-GPS.OQP $false
/return
}
/sockread -f %temp
while ( $sockbr != 0) {
;----------------------------------------
;----------------------------------------
; if ( %temp != $null ) /echo -at $replace( %temp , <, 14< , >, >4 )
if ( Mémoriser cette adresse isin %temp ) {
%temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, city= ) - 4 ) )
%bot-Gps.City = $remove( $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) ), %,0,1,2,3,4,5,6,7,8,9 )
%temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, slt= ) - 3 ) )
%bot-Gps.NS = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
%temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, sln= ) - 3 ) )
%bot-Gps.EO = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
%temp = $right( %temp , $calc( $len( %temp ) - $pos( %temp, zip= ) - 3 ) )
%bot-Gps.ZIP = $left( %temp , $calc( $pos( %temp, % $+ 26 ) - 1) )
%bot.msg = [GPS] %bot-Gps.City ( $+ %bot-Gps.ZIP $+ ) $iif( %bot-Gps.NS > 0, Nord:, Sud: ) $remove( %bot-Gps.NS, - ) $&
$iif( %bot-Gps.EO > 0, Est:, Ouest: ) $remove( %bot-Gps.EO, - )
/echo -at 14,9 $+ %bot.msg
}
if ( Version imprimable isin %temp ) && ( alt !isin temp ) {
%bot-Gps.temp = $remove( %Bot-Gps.temp, <a href=", "> )
%bot-Gps.temp = $replace( %Bot-Gps.temp, mag=5, mag=2 )
; Vous pouvez choisir de ne pas afficher la carte
/echo -at 14,9 $+ - Carte: 9,14 $+ http://fr.maps.yahoo.com $+ %Bot-Gps.temp $+ 10,9 Clickez sur le lien.
/run http://fr.maps.yahoo.com $+ %Bot-Gps.temp
}
%Bot-Gps.temp = %temp
;----------------------------------------
;----------------------------------------
/sockread -f %temp
}
}
on *:sockclose:GPS: {
if ( !%bot-Gps.City ) {
/Echo -at 14,9 $+ - Je ne trouve rien dans ma base sur %bot-GPS.critere $+ .
/Echo -at 14,9 $+ - Changer votre critere.
}
/echo -at 14,9 $+ - C'est tout pour aujourd'hui.
/unset %bot-GPS.*
}
Conclusion
- /GPS Ville : vous donne les coordonnées d'un lieu et un lien vers une carte.
- Ctrl F5 : envoie les coordonnées sur le salon ou le PV. vous pouvez toujours modifier la touche si elle ne vous satisfait pas.
Le 18 Nov 2002
- Modif pour tenir compte des remarques.
- Ajout du lancement de la carte.
- Une boite de dialogue feras suite... avec recherche d'un lieu et gestion de l'affichage de la carte.
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|