1. rasputin007's Avatar
    That's yahoo then. There's nothing to "fix" it's just the way they are reporting your neighborhood
    Try looking last page or two
    Yahoo does that sometimes. When I'm in another city it gives me city name city name instead of neighborhood.
    One is North York which is in Toronto but it displays as city- North York / neighborhood- North York
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    Code:
    function UpdateLocation() {  
    		jQuery.get('/var/mobile/Documents/myLocation.txt', function(appdata) {
    			var myvar = appdata;
    			var substr = appdata.split('\n');
    			var templatitude=(substr[0]).split('=');
    			var templongitude=(substr[1]).split('=');
    			var latitude = $.trim(templatitude[1]);
    			var longitude = $.trim(templongitude[1]);
    			var Yahooappid =""
    			
    			if (prevlatitude != latitude || prevlongitude != longitude) {
    				var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    				$.getJSON(url, function(data) {
    					woeid = data.ResultSet.Results[0].woeid;
    					if (latitude < 0) {
    					 textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    					}
    					 else if (latitude > 0){
    						textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    					 }
    					 else {
    						textLat = Math.round(latitude*100)/100 + "\u00B0";
    					 }
    					 
    					 if (longitude < 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    					}
    					else if (longitude > 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    					}
    					else {
    						textLong = Math.round(longitude*100)/100 + "\u00B0";
    					 }
    					$("#latlong").text(textLat + "  " + textLong);
    					
    					var geocoder;
    					var map;
    					var marker;
    
    					  geocoder = new google.maps.Geocoder();
    					  var latlng = new google.maps.LatLng(latitude,longitude);
    					  var myOptions = {
    					    zoom: 10,
    					    center: latlng,
    					    mapTypeId: google.maps.MapTypeId.SATELLITE
    					  }
    					  map = new google.maps.Map(myOptions);
    
    					var geocoder = new google.maps.Geocoder();
    					var latlng = new google.maps.LatLng(latitude,longitude);
    					 geocoder.geocode({'latLng': latlng}, function(results, status) {
    					   if (status == google.maps.GeocoderStatus.OK) {
    					     if (results[1]) {
    					        map.setZoom(10);
    					  		marker = new google.maps.Marker({
    						    position: latlng,
    					        map: map
    					     });
    					  var town=results[1].address_components[1].long_name;
    					  document.getElementById("city").innerText=town;
    					  prevlatitude = latitude;
    					  prevlongitude = longitude;
    					  GetWeather(woeid); setInterval('GetWeather(woeid)', 1000*20*60 );
    					  }
    					} else {
            
    					}
    					})
    				});
    			}	
    		});	
     }
    New additional code in RED!

    You have to "disable" the "city" read-out from the Yahoo response file, usually found in another xxxx.js file or even a html file and looks like document.getElementById("city").innerText=city;!
    You can get different location info by adding/changing the
    results[1].address_components[1].long_name;
    line with

    results[0].formatted_address: "275-291 Bedford Ave, Brooklyn, NY 11211, USA",
    results[1].formatted_address: "Williamsburg, NY, USA",
    results[2].formatted_address: "New York 11211, USA",
    results[3].formatted_address: "Kings, New York, USA",
    results[4].formatted_address: "Brooklyn, New York, USA",
    results[5].formatted_address: "New York, New York, USA",
    results[6].formatted_address: "New York, USA",
    results[7].formatted_address: "United States"

    Google info page see "Reverse geocoding" section!
    Last edited by rasputin007; 2012-12-10 at 11:22 PM. Reason: A bit more of a hint :D
    2012-12-10 09:20 AM
  2. NewD's Avatar
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    [CODE]
    function UpdateLocation() {
    jQuery.get('/var
    Okay, Ras.. I'll bite.. But we need more info. From where to where, in what specific file do we paste all that code?
    2012-12-10 12:17 PM
  3. GUNNY29's Avatar
    He has told you in his post where it should go
    Click My Sig For my auros Mods
    2012-12-10 01:40 PM
  4. NewD's Avatar
    He has told you in his post where it should go
    C'mon Gunny. If it were clear I never would've asked the question. "Usually in the location.js" isn't specific enough. And it doesn't specify what to replace that's already in there. What gets 'snipped out' and replaced by the new. I never ask a question here unless I've already read something several times, TRIED the solution, and it HASN'T worked.

    So my question stands.
    Last edited by NewD; 2012-12-10 at 04:26 PM.
    2012-12-10 04:23 PM
  5. GUNNY29's Avatar
    He has in brackets usually found in location.js

    Wild idea here but try looking in location.js and comparing what ras has posted and what's in the file.

    I've not got a location.js to hand as I'm at work but I know where rasputins code goes simply by the first few lines
    Last edited by GUNNY29; 2012-12-10 at 04:31 PM.
    Click My Sig For my auros Mods
    2012-12-10 04:26 PM
  6. NewD's Avatar
    He has in brackets usually found in location.js

    Wild idea here but try looking in location.js and comparing what ras has posted and what's in the file.

    I've not got a location.js to hand as I'm at work but I know where rasputins code goes simply by the first few lines
    I did that already, Gunny, and it didn't work. Again, that's why I asked for more specific instructions. If you tried what is 'implied' in Ras' post, it wouldn't have worked for you either. That's why I asked. I will never ask a question if there's an 'obvious' answer. That would be a waste of time. If I ask -- it's because I tested and it didn't work.

    But hey..... There's always the possibility of user error.. So I will try yet again.. . If this works -- I'll be forever unattached to the most annoying aspects of Yahoo's implementation.
    2012-12-10 05:59 PM
  7. The_Durben's Avatar
    Yepp, the curse of Yahoo Location Service, you never know what name you get. It all depends on the way the response file is build and that again depends on the which Yahoo url you used to get the response file from, see this post (#1283)

    That's why I use Google Maps for location name (it even knows my little village, Yahoo does not and gives me the name of the next village instead).
    I think the easiest way is to use a code like this (usually found in location.js)

    Code:
    function UpdateLocation() {  
    		jQuery.get('/var/mobile/Documents/myLocation.txt', function(appdata) {
    			var myvar = appdata;
    			var substr = appdata.split('\n');
    			var templatitude=(substr[0]).split('=');
    			var templongitude=(substr[1]).split('=');
    			var latitude = $.trim(templatitude[1]);
    			var longitude = $.trim(templongitude[1]);
    			var Yahooappid =""
    			
    			if (prevlatitude != latitude || prevlongitude != longitude) {
    				var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R&flags=J"
    				$.getJSON(url, function(data) {
    					woeid = data.ResultSet.Results[0].woeid;
    					if (latitude < 0) {
    					 textLat = Math.round(latitude*100)/100 + "\u00B0" + "S";
    					}
    					 else if (latitude > 0){
    						textLat = Math.round(latitude*100)/100 + "\u00B0" + "N";
    					 }
    					 else {
    						textLat = Math.round(latitude*100)/100 + "\u00B0";
    					 }
    					 
    					 if (longitude < 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "W";
    					}
    					else if (longitude > 0) {
    						textLong = Math.round(longitude*100)/100 + "\u00B0" + "E";
    					}
    					else {
    						textLong = Math.round(longitude*100)/100 + "\u00B0";
    					 }
    					$("#latlong").text(textLat + "  " + textLong);
    					
    					var geocoder;
    					var map;
    					var marker;
    
    					  geocoder = new google.maps.Geocoder();
    					  var latlng = new google.maps.LatLng(latitude,longitude);
    					  var myOptions = {
    					    zoom: 10,
    					    center: latlng,
    					    mapTypeId: google.maps.MapTypeId.SATELLITE
    					  }
    					  map = new google.maps.Map(myOptions);
    
    					var geocoder = new google.maps.Geocoder();
    					var latlng = new google.maps.LatLng(latitude,longitude);
    					 geocoder.geocode({'latLng': latlng}, function(results, status) {
    					   if (status == google.maps.GeocoderStatus.OK) {
    					     if (results[1]) {
    					        map.setZoom(10);
    					  		marker = new google.maps.Marker({
    						    position: latlng,
    					        map: map
    					     });
    					  var town=results[1].address_components[1].long_name;
    					  document.getElementById("city").innerText=town;
    					  prevlatitude = latitude;
    					  prevlongitude = longitude;
    					  GetWeather(woeid); setInterval('GetWeather(woeid)', 1000*20*60 );
    					  }
    					} else {
            
    					}
    					})
    				});
    			}	
    		});	
     }
    You have to "disable" the "city" read-out from the Yahoo response file, usually found in another xxxx.js file or even a html file!
    You can get different location info by adding/changing the
    results[1].address_components[1].long_name;
    line with
    Thanks Ras! Yahoo is crappy for this. For the most part it picks up my city/neighborhood correctly so I never bother messing with it. Seems users outside North America have the issue more often.
    I'll have a look at this when my eyes wake up.
    2012-12-10 07:06 PM
  8. larke's Avatar
    wow all the snowflake widgets makes me want to turn my boss fish tank into an iwidget i miss workin on iwidgets, though i miss having a jailbreak more

    HotPink | iApplesauce | Hypnotiq | iAppleWood | boss mods
    2012-12-10 08:43 PM
  9. hemptation's Avatar
    That would be awesome Larkalicious. You should turn it into a snow globe.

    With weather info as well. And maybe if you shake it it makes the snow fly all around. Ha
    2012-12-10 08:47 PM
  10. larke's Avatar
    That would be awesome Larkalicious. You should turn it into a snow globe.

    With weather info as well. And maybe if you shake it it makes the snow fly all around. Ha
    oooo snowglobe is a good idea! though shaking it is not something i know how to do lol, or even know if its possible

    HotPink | iApplesauce | Hypnotiq | iAppleWood | boss mods
    2012-12-10 08:59 PM
  11. hemptation's Avatar
    Well if you don't know how to shake it..then who does? Ha ha. I Kidd I Kidd

    Sow globe would be awesome. And would be nice to have some gps weather in there as well.
    Maybe city and temp. Something simple. Yall are the masters tho. I'm just here enjoying the work.
    2012-12-10 09:54 PM
  12. GUNNY29's Avatar
    I know June can do it. Just whether he has the time as he's busy upgrading iLink. I've let him know about the idea
    Click My Sig For my auros Mods
    2012-12-10 10:00 PM
  13. RKO1195's Avatar
    June already has a iWidget that you shake with snow on cydia I believe
    2012-12-10 10:10 PM
  14. azaleea's Avatar
    wow all the snowflake widgets makes me want to turn my boss fish tank into an iwidget i miss workin on iwidgets, though i miss having a jailbreak more
    Hi Larke

    for your fishtank you could use the bubbles, i think they would fit perfectly
    (let me know if you have them, or need them, i ll send them to you)
    regardless what you do with the snowglobe

    great idea hemptation
    Last edited by azaleea; 2012-12-10 at 10:36 PM.
    2012-12-10 10:33 PM
  15. Vanasian's Avatar
    hi guys..I have a problem with my iwidgets..could anyone help?
    I accidently pull my iwidget down to dock postion and now I can't move it.
    I can't delete it,either.
    I tried to uninstall iwidgets and reinstall it again..
    It still shows up on my dock..
    Could anyone tell me how to move it or delete it? Thank u so much
    2012-12-10 10:53 PM
  16. GUNNY29's Avatar
    Try making the height in the plist bigger or deleting the actual widget


    hi guys..I have a problem with my iwidgets..could anyone help?
    I accidently pull my iwidget down to dock postion and now I can't move it.
    I can't delete it,either.
    I tried to uninstall iwidgets and reinstall it again..
    It still shows up on my dock..
    Could anyone tell me how to move it or delete it? Thank u so much
    Yeah he does touch functions and shake themed for his 1nfected theme


    June already has a iWidget that you shake with snow on cydia I believe
    Click My Sig For my auros Mods
    2012-12-10 10:55 PM
  17. Vanasian's Avatar
    Try making the height in the plist bigger or deleting the actual widget




    Yeah he does touch functions and shake themed for his 1nfected theme
    Thank u so much..I deleted it from iwidgets folder...
    then I respring and add it back to iwidgets..
    it works fine now..Thank u so much,,
    2012-12-10 11:03 PM
  18. GUNNY29's Avatar
    No worries bro glad you got it sorted


    Thank u so much..I deleted it from iwidgets folder...
    then I respring and add it back to iwidgets..
    it works fine now..Thank u so much,,
    Click My Sig For my auros Mods
    2012-12-10 11:04 PM
  19. xyojimbox's Avatar
    Chevy muscle car dude where is your widget you posted a screen shot of in themishd I want it and can't find it. Thank you
    2012-12-10 11:10 PM
  20. Richard's Avatar
    What happened to the Drifter ? I have not seen him around for like ever ?
    . I Am the Random Thanks Collector So Please Press the Thanks Button
    2012-12-11 08:25 AM
LINK TO POST COPIED TO CLIPBOARD