Map data convert
About this tool
How to use it
- Choose this tool.
- Add your map file or your table of places with Upload or drag and drop.
- Choose the format you want as the result.
- Set any extras, such as the latitude and longitude columns of a table, then press Generate.
- Download the converted file.
What you get back
Try Map data convert in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/data/geo" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'file=@document.pdf' \
-F 'to=geojson' \
-F 'lat_column=latitude' \
-F 'lon_column=longitude'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.geo({
"file": 'document.pdf',
"to": "geojson",
"lat_column": "latitude",
"lon_column": "longitude"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->geo([
'file' => 'document.pdf',
'to' => 'geojson',
'lat_column' => 'latitude',
'lon_column' => 'longitude',
]);
echo $result->requestId;