` to highlight different parts of the address:
270-276 W 39th St,
Manhattan,
NYC
In Django, you would save this HTML string in a `TextField` or `CharField` depending on the length and complexity of the data. Here's an example model:
python
from django.db import models
class Address(models.Model):
address_html = models.TextField(null=True, blank=True)
def __str__(self):
return self.address_html
You can then save the formatted HTML string into the `address_html` field.
If you want to automatically convert plain text addresses into this HTML format, you could create a custom method in your model or a utility function:
python
def format_address_as_html(address):
parts = address.split(', ')
html = '
'
for part in parts:
html += f'{part}, '
# Remove the trailing comma and space
html = html[:-2] + '
'
return html
# Example usage:
address = "270-276 W 39th St, Manhattan, NYC"
formatted_html = format_address_as_html(address)
# Save formatted_html to your model field
However, if you're dealing with complex or variable address formats, you might want to consider using a more sophisticated parsing library to ensure consistency and accuracy.
Building Amenities at 270-276 W 39th St, Manhattan, NYC
- Property Manager on Site
- Surface Parking
- Surface Tandem Parking
- Covered Parking
- Covered Tandem Parking
- Reserved Parking
- Two Large Conference Rooms
- Office with Wet Pantry
- Tenant Controlled AC
270-276 W 39th St, Manhattan, NYC
This office building, located at 270-276 W 39th St, New York, NY 10018, was built in 1925 and features a total building size of 124,000 SF. It is classified as a Class C building and is zoned M1-6.
Current Tenants by Business Type
- Apparel and Textiles
- Amarante Sample Room
- Apparel Production Inc
- Central Park West Sportswear
- Four Seasons Fashion Manufacturing Inc
- Luna Luz
- Medal Textiles Inc
- Oriole Textile Co
- Studio One Leather Design Inc
- Other Businesses
The building offers amenities such as a property manager on site and surface parking. It is strategically located near major transportation hubs like Penn Station and Times Square.
Internet Providers at 270-276 W 39th St, Manhattan, NYC:
- Verizon: Known for its high-speed Fios service, offering speeds up to 2.3 Gbps.
- Astound Broadband Powered by RCN: Offers both cable and fiber services with speeds up to 1.5 Gbps.
- Spectrum: Provides cable internet with speeds up to 1 Gbps.
- Optimum: Offers cable and fiber services with speeds up to 8 Gbps.
Availability may vary depending on the specific location within the building.
Location: 270-276 W 39th St, Manhattan, NYC
Transportation Options:
- Bus: M12, M42, M50
- Train: Harlem, Hudson, Port Washington Branch
- Subway: 2, 7, 7X, A, Q, C, E
- Ferry: SG
Cross Streets:
- West 39th Street and 12th Avenue
- West 39th Street and Broadway (nearby)
Nearest Stops:
- 12 Av/W 40 St
- W 42 St/12 Av
- Midtown West/W 39th St-Pier 79
None
None