Get Current Location Details using Google GeoLocation

We can easily get current location using HTML5 Navigator object. Please follow below steps to get city/country details

Including jQuery Lib
</p> <p><script src="//"></script>

jQuery(function() {
  //call navigator object to get latitude and logtitute
  if(navigator.geolocation) {
	//getting current latitude and longtitude
	navigator.geolocation.getCurrentPosition(function(position) {
	   //get location details based on latitude and longtitude from Google
	   var jsonUrl = ""+position.coords.latitude+","+position.coords.longitude
	   jQuery.getJSON(jsonUrl , function( data ) {
	      var results = data.results[0];
    ; //check firebug
	      alert(results.address_components[5].long_name); //City
	      alert(results.address_components[6].long_name); //State
	      alert(results.address_components[7].long_name); //Country
	      alert('Failed to get Location Details...');
	return false;


Ember JS – Use of RESTAdapter and FixtureAdapter

In Ember JS default store uses RESTAdaptor . Its hard to user another store with FixtureAdaptor but we can assign adapter to particular Model like below.

App.Store = DS.Store.extend({ revision: 4, adapter: DS.RESTAdapter.create({'url':HOST, namespace:NSPACE}), });

Above code is for Store and We can’t create App.Store2 in current version of Ember JS to use FixtureAdapter. Instead we can assign new adapter for that particular Model like below.

App.StudentAdapter = DS.FixtureAdapter.extend();