Skip to content

This is a personal project to list where I am currently, and where I've been on my travels.

Notifications You must be signed in to change notification settings

shaneog/whereisshane.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhereIsShane

This is a personal project to list where I am currently, and where I've been on my travels.

Requirements

Front-End

A responsive single page that displays a map which will show a list of all the places I have "checked-in"

Back-end

A single URL/page that I can visit on any browser (desktop/mobile) which will use several techniques to find my current location, starting with the most precise and then moving to less precise methods.

The name of the location can be retrieved using Google Maps Reverse Geocoding service.

If more than one result is returned they will all be displayed and a choice can be made on which to use.

Once a choice is made the location data is stored is as JSON.

This URL/back-end must be secured in some way so as to be accessible to only me, even though the site source will be freely available.

Long term location data storage will be via a hosted database provider that provides a free tier:

Storage Schema

{
    "type":"object",
    "$schema": "http://json-schema.org/draft-03/schema",
    "properties":{
        "name": {
            "description": "The location name, if available",
            "type":"string",
            "id": "name",
            "required":false
        },
        "description": {
            "description": "Optional short description or blurb",
            "type":"string",
            "id": "description",
            "required":false
        },
        "location": {
            "description": "The location co-ordinates",
            "type":"object",
            "id": "location",
            "required":true,
            "properties":{
                "lat": {
                    "type":"number",
                    "id": "lat",
                    "required":true
                },
                "lng": {
                    "type":"number",
                    "id": "lng",
                    "required":true
                }
            }
        },
        "timestamp": {
            "description": "Check-in time",
            "type":"number",
            "id": "timestamp",
            "required":true
        }
    }
}
Full Example:
{
  "name": "East Pier, Dun Laoghaire-Rathdown, Dublin, Ireland",
  "description": "Dun Laoghaire Harbour",
  "location":{
    "lat": 53.29272,
    "lng": -6.12973
  },
  "timestamp": 1363352656691
}

About

This is a personal project to list where I am currently, and where I've been on my travels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published