Skip to content

karx/opposite-entity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opposte Entity using Wikidata

Demo hosted at: opposite.akriya.co.in

API uses barebones Node.js app using Express 4.

Wikidata

How do we do

Given your latitude and longitude, to find the coordinates of the opposite point:
For the latitude, simply change N to S or vice versa; and,
For the longitude, subtract from 180° and change E to W or vice versa (keep in mind when doing this calculation that a minute is 1/60th of a degree, and a second is 1/60th of a minute, and calculate accordingly.)

E.g., the point opposite 40° 21' N 86° 33' W is 40° 21' S 93° 27' E.

If you're using a system which uses signed longitude and latitude (north and east are positive, by convention; south and west are negative), then: take the negative of the latitude; and add 180° to a negative longitude, or subtract 180° from a positive longitude (again remembering minutes and seconds).

  • Using data from Wikidata

Read up

  • Lotico A social network of active Lotico Semantic Web community members, provided as RDF via resolvable URIs and a SPARQL endpoint.

this existed. why no more info about after '20

  • Host own rdf store of this information about people. Or atleast simulated wikidata information

Interesting Links

Running Locally

Make sure you have Node.js and the Heroku Toolbelt installed. s

git clone git@github.com:karx/opposite-entity.git
cd opposite-entity
npm install
npm start

Your app should now be running on localhost:3147.

Deploying to Heroku

heroku create
git push heroku master
heroku open

Alternatively, you can deploy your own copy of the app using the web-based flow:

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

Discussion, Support and Issues

For general support and discussion of this project, please join the Discord server: Discord Invite Link

Discord Server

To check known bugs and see planned changes and features for this project, please see the GitHub issues. Found a bug we don't already have an issue for? Please report it in a new GitHub issue with as much detail as you can!

About

A service to get what is on the other side of the world

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published