build data method for mapbox