GOOGLE MAP INTEGRATION

We have a google map field in our quote record that provides a map of the shipping address. (We have named this the jobsite address tho). The trouble is that when there is a second line of the address for the floor number, apt number, etc. it errors out the map. Is there a way to set the code to use only the first line of the address? Ideally, taking only the info before the first hard return? 

Here is the code we are using to make it work currently. 

www.google.com/.../place, {shipping_address_city}, {shipping_address_state}, {shipping_address_postalcode}

(Note: I have edited out my google key as I think that is proprietary to our company)