Giter Site home page Giter Site logo

yncyrydybyl / locationnotes Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 337 KB

LocationNotes is a sample application that uses Netmera’s JS API. Simply it keeps geo-location code and small notes that added by users on cloud. Also it can search on map and shows the contents within 5 kilometers radius of users current location.

Home Page: http://netmera.com

locationnotes's Introduction

LocationNotes

It is a sample application that uses Netmera’s JS API. Simply it keeps geo-location code and small notes that added by users on cloud. Also it can search on map and shows the contents within 5 kilometers radius of users current location.

Netmera allows circular search with few lines of code.

	var contentService = new x.contentService("Notes");
	contentService.setMax(10);
	contentService.setPage(page);

	contentService.circleSearch(x.geoLocation(location.latitude, location.longitude), 5, "noteLocation", function() {
		var entries = contentService.getEntries();
		var totalResults = contentService.getTotalResults();
		if (totalResults > 0) {
			$.each(entries, function(key, val) {
				var myLatlng = new google.maps.LatLng(val.get("latitude"), val.get("longitude"));
				var marker = new google.maps.Marker({
					position: myLatlng,
					map: mapCanvas
				});
				google.maps.event.addListener(marker, 'click', function() {
					detailPage(val);
				});
			});
		}
	});

It searches the content by taking given location as a base and retrieves the content that located given distance far away.

What is NETMERA ?

[Netmera] (http://netmera.com) is a cloud platform (PaaS) optimized for mobile applications. Netmera offers a cloud based content & data repository. With simple APIs and mobile SDKs it is easy to store, retrieve, search and query data & content on the cloud.

locationnotes's People

Contributors

turankonan avatar bilalbayrak avatar

Watchers

Yan Minagawa avatar James Cloos avatar

Forkers

e22pla smbale

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.