Skip to content

Instantly share code, notes, and snippets.

View jsanz's full-sized avatar
🗺️
Mapping

Jorge Sanz jsanz

🗺️
Mapping
View GitHub Profile
@jsanz
jsanz / app.css
Created August 14, 2018 14:38 — forked from jorgesancha/app.css
This file has been truncated, but you can view the full file.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
a {
text-decoration: none;
color: #4285F4;
}
.map {
@jsanz
jsanz / README.md
Last active July 31, 2018 22:30
#CARTO Maps API & #OpenLayers with #cartojs

Simple instantiation of an OpenLayers map loading tiles from CARTO Maps API.

@jsanz
jsanz / README.md
Last active June 29, 2018 08:01
#MapboxGL + #OSM data

Get data from OSM using Overpass API and render it on a Mapbox GL map.

@jsanz
jsanz / blablacar.ipynb
Created March 13, 2018 16:27
Python: Get data from BlaBlaCar API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsanz
jsanz / README.md
Last active January 19, 2018 18:52
Python: Get all queries from your CARTO maps

Report maps and datasets of a CARTO account

See the report_xurxosanz.html report for an example of the output.

Usage

$ python carto_report.py -h
usage: carto_report.py [-h] [--user USER] [--organization ORGANIZATION]
@jsanz
jsanz / batch_api_demo.ipynb
Last active January 5, 2018 14:31
Python: CARTO Batch SDK API call
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsanz
jsanz / README.md
Last active January 2, 2018 18:50
JS: CartoDB.js 3.15 rendering anoynmous map on retina display

Using getTile core method from CartoDB.js 3.15 and Leaflet Retina detection to retrieve retina tiles from CARTO Maps API.

You can find more details here on how to get your retina urls. Mind that this only works for anonymous maps since getTiles does not support named maps.

@jsanz
jsanz / README.md
Created December 21, 2017 09:43
JS: minimal example of axios and SQL API

As the new carto.js library does not provide a SQL API client, this small example shows how to use a requests library like axios to provide the same functionality with a very similar approach as the old cartodb.SQL client.

@jsanz
jsanz / index.html
Created December 14, 2017 11:31
JS: HERE as a custom search engine with Leaflet
<!DOCTYPE html>
<html>
<head>
<title>Custom search example | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
@jsanz
jsanz / README.md
Last active July 20, 2018 08:51
Hackarto.js City Finder

Hackarto.js · City Finder

Small geography game using CARTO.js v4

Author:

  • Jorge Sanz
  • Dani Carrión

Improved version (post Hackarto.js) here