Overview

JPEG format contains a lot of metadata like locations, devices, etc, which are typically created when a photo is created. We prepared a collection of photos and modified the GPS information inside each of them.

Develop a RESTful API /imagesGPS which takes in a JSON array of objects containing the url of a random image for fetching, and returns the latitude and longitude of the location inside the JPEG for evaluation.
Input field:

"path": the relative url of the image

Output Format

A JSON array of object containing "lat" and "long" fields with their decimal value

Sample Input
                    
[
    {path: "https://cis2018-photo-gps.herokuapp.com/images/sample1.jpg"},
    {path: "https://cis2018-photo-gps.herokuapp.com/images/sample2.jpg"},
    {path: "https://cis2018-photo-gps.herokuapp.com/images/sample3.jpg"},
    {path: "https://cis2018-photo-gps.herokuapp.com/images/sample4.jpg"},
    {path: "https://cis2018-photo-gps.herokuapp.com/images/sample5.jpg"}
]
                    
                
Sample Output
                    
[
    {
        lat: 22.333,
        long: -33.444
    },
    {
        lat: 9.22333,
        long: -5.31
    }
    {
        lat: 6.22333,
        long: -2.31
    }
    {
        lat: 92.223509833,
        long: -68.31
    }
    {
        lat: 29.22333,
        long: -11.31
    }
]
                    
                

Evaluation

Every correct solution gain 20 points. Max 100 points.