AWS Lambda function: Wrapper around Mapbox Map generator for GEOJSON

Completed Posted 7 years ago Paid on delivery
Completed Paid on delivery

I want to be able to POST a GEOJSON string to an endpoint and get back an URL to a static image where the GEOJSON geometry is rendered on top. The static image is useful to send by email, share in a chat etc compared to a interactive JavaScript map.

The heavy lifting is done by Mapbox:

[login to view URL]

The API allows you to just put the GEOSJON in the URL. So why not just do that? I would like the function to do 2 things, that Mapbox does not do:

1) Calculate where to center and zoom in on the map

The map needs to match the polygons in the GEOJSON file. Luckily Mapbox already provides inspiration of how to do that:

[login to view URL]

2) Store the image on a shorter URL

Some browsers have issues with URLs longer than around 2000 chars. And some GEOJSON strings will be longer. So we need to store the generated image somewhere.

I'm open to suggestions, but [login to view URL] or just S3 might work. I don't think an URL shortener will work, as it redirects to the real and potentially long URL.

Implementation

I would like this to be implemented in server side JavaScript (node) as a AWS Lambda function.

I've attached a sample GEOSJON file.

Amazon Web Services JavaScript

Project ID: #11412793

About the project

6 proposals Remote project Active 7 years ago

Awarded to:

intelgeek

Hey there, I've got extensive experience with Amazon AWS and other cloud computing services. You can confirm this by checking out my profile page, you will see lots of AWS related projects. I'm well versed in Linux More

$260 USD in 5 days
(52 Reviews)
5.7

6 freelancers are bidding on average $208 for this job

arifjaunpur

Hello, I am Sr. web developer have strong debugging and coding skills. I am full stack developer with good knowledge of Java, PHP, JavaScript, MySQL, MongoDB, AngularJS, JQuery, HTML, Bootstrap, etc. I have creat More

$300 USD in 7 days
(86 Reviews)
6.7
lawSamuels

Hello i can deliver this project. i have done many similar photo editing projects in the past. I am confident of delivery. Please let me know if you wish to take it further

$155 USD in 3 days
(1 Review)
2.4