Hello Doug,

Simply put, the command does the following:

   1. Take a string representing a location as input (E.g. Ontario, Canada
   or NW1 5BD)
   2. Use the tinygeocoder service to produce a corresponding Geocode and
   place it on your clip-board
   3. The map is displayed purely for visual purposes and serves no other
   use at the moment. And no, You dont need to have a good maps api key to use
   it.

For me it was a learning exercise for using Jquery to submit requests to a
website and process the response :-)

>> var geocoder = new GClientGeocoder();
>> var latLng =  geocoder.getLatLng(address, function(point) {  }  );
>>
No, it cant be used that way. Like the built-in tinyurl command, this one
was built with the intention of letting people use the tinygeocoder without
visiting the website.

Depending on what you want to do, you may want to check out

CmdUtils.getGeoLocation()

- Mayuresh

On Wed, Nov 12, 2008 at 7:40 PM, Douglas Nogueira
<[EMAIL PROTECTED]>wrote:

> I want to know if i can do this inside of a ubiquity command:
>
>                              var geocoder = new GClientGeocoder();
>                               var latLng =  geocoder.getLatLng(address,
> function(point) {  }  );
>
>
> Given a string with the address, i want her LatLng.
> I need a key of the google maps for that?
> In your tiny-geocoder, you use that?
>
> ----
> Doug
>
> 2008/11/12 <[EMAIL PROTECTED]>
>
> Hi,
>>
>> I've just put together a command for generating geocodes using the free
>> api service @ http://tinygeocoder.com/ . It's at:
>>
>> http://mskadu.googlepages.com/tinygeocode
>>
>> code at:
>> http://code.google.com/p/ubiquity-commands/source/browse/trunk/scripts/tinygeocode.ubiq.js
>>
>> Any comments/ criticism welcome!
>>
>> --
>> Mayuresh
>>
>>
>>
>
> >
>


-- 
Mayuresh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to