<filename>cit-api/pipeline/models/roads_and_highways.py
from django.contrib.gis.db import models
from django.contrib.gis.db.models import MultiLineStringField
from django.contrib.gis.geos import Point

from pipeline.constants import WGS84_SRID


class RoadsAndHighways(models.Model):
    ID_FIELD = 'DIGITAL_ROAD_ATLAS_LINE_ID'
    NAME_FIELD = 'ROAD_NAME_FULL'

    area_id = models.IntegerField(null=True, help_text="Original ID of data point")
    feature_type = models.CharField(max_length=32)
    road_surface = models.CharField(max_length=32)
    road_class = models.CharField(max_length=32)
    name = models.CharField(max_length=127)
    road_name_alias1 = models.CharField(null=True, max_length=32)
    road_name_alias2 = models.CharField(null=True, max_length=32)
    geom = models.MultiLineStringField(srid=WGS84_SRID, null=True)
    geom_simplified = models.MultiLineStringField(srid=WGS84_SRID, null=True)
    number_of_lanes = models.IntegerField(null=True)

    class Meta:
        ordering = ("id", )

    def __str__(self):
        return self.name
<filename>cit-api/pipeline/models/roads_and_highways.py
from django.contrib.gis.db import models
from django.contrib.gis.db.models import MultiLineStringField
from django.contrib.gis.geos import Point

from pipeline.constants import WGS84_SRID


class RoadsAndHighways(models.Model):
    ID_FIELD = 'DIGITAL_ROAD_ATLAS_LINE_ID'
    NAME_FIELD = 'ROAD_NAME_FULL'

    area_id = models.IntegerField(null=True, help_text="Original ID of data point")
    feature_type = models.CharField(max_length=32)
    road_surface = models.CharField(max_length=32)
    road_class = models.CharField(max_length=32)
    name = models.CharField(max_length=127)
    road_name_alias1 = models.CharField(null=True, max_length=32)
    road_name_alias2 = models.CharField(null=True, max_length=32)
    geom = models.MultiLineStringField(srid=WGS84_SRID, null=True)
    geom_simplified = models.MultiLineStringField(srid=WGS84_SRID, null=True)
    number_of_lanes = models.IntegerField(null=True)

    class Meta:
        ordering = ("id", )

    def __str__(self):
        return self.name