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
[MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA[MIX10] KEYNOTE DEUXIèME JOURNéE - INTERNET EXPLORER 9, HTML5, VISUAL STUDIO 2010, ODATA par cyril
Le deuxième keynote du mix fut très riche en contenu. Internet Explorer 9 Juste un après le lancement de Internet Explorer 8, Microsoft a dévoilé les nouveautés de Internet Explorer 9. Désormais, IE supportera HTML5, SVG et CSS3. L'élément ...
Cliquez pour lire la suite de l'article par cyril CERTIFICATIONS BETA .NET 4CERTIFICATIONS BETA .NET 4 par KooKiz
Les inscriptions pour les certifications beta .NET 4 ont commencé. L'inscription est offerte pour les examens suivants : - 71-511, TS: Windows Applications Development with Microsoft .NET Framework 4 - 71-515, TS: Web Applications Development with...
Cliquez pour lire la suite de l'article par KooKiz [MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2[MIX 2010] - MICROSOFT TRANSLATOR TECHNOLOGY PREVIEW V2 par redo
J'imagine que la plupart d'entre vous connaissent bien et utilisent le service de traduction de Google, mais connaissez-vous celui de Microsoft . Microsoft Translator ? Effectivement, Microsoft nous annoncé le lancement version 2 de la Technologie Preview...
Cliquez pour lire la suite de l'article par redo LANCEMENT EN PREVIEW DE CYCLONE LORS DES TECHDAYS 2010!LANCEMENT EN PREVIEW DE CYCLONE LORS DES TECHDAYS 2010! par MPOWARE
Toutes les vidéos de ce lancement sont en ligne!
Partie I - Intro
http://www.youtube.com/watch?v=LkQzTQ8T6CA
Partie II - Démo 1
http://www.youtube.com/watch?v=drAhYQ7lqvo
Partie III - Démo 2
http://www.youtube.com/watch?v=c8KM_1Gqybc...
Cliquez pour lire la suite de l'article par MPOWARE
Logiciels
Academy System (10.9.4.0)ACADEMY SYSTEM (10.9.4.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods
|