mapbox / mapbox/mapbox-sdk-js

Add option to send text instead of file in nodejs

Open
#470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
768
Forks
191
PR merge metrics
No merged PRs in 30d

Description

I want to use the Tileset service to create a new source from a nodejs app.
The `createTileset` only accepts data from files, but for my use case the data do not come from a file, but from a database, so I have the string content of my geojson, and I don't want to save it to the disk and then send it to the API, it's just waste of resource.

Can you add the ability to supply a directly the content of the geojson instead of a path to the file ?

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The entry point named in the issue is createTileset; inspect its current file-input handling and the request sent to the Tileset service. Add support for string GeoJSON content without requiring a disk file, then run the relevant tests and verify that both string content and existing file input work.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.