this simple component allows for geocoding from various providers
currently just returns an array of the form [lon, lat] or null if the address can't be geocoded
import geocode, {nominatim} from 'geocodr'
geocode('10021', nominatim).then((coordinates)=>{
// do stuff with coordinates
})
import geocode, {geocodio} from 'geocodr'
geocode(['10021', '06067', '06108'], geocodio).then((coordinates)=>{
// do stuff with coordinates (will be an array of [lon, lat] arrays in respective order)
})
import geocode, {mapzen} from 'geocodr'
geocode('10021', {...mapzen, api_key: 'my-api-key'}).then((coordinates)=>{
// do stuff with coordinates
})