Categories
Uncategorized

How to get LatLng from zip code with Google Maps API?

Sometimes, we want to get LatLng from zip code with Google Maps API.

In this article, we’ll look at how to get LatLng from zip code with Google Maps API.

How to get LatLng from zip code with Google Maps API?

To get LatLng from zip code with Google Maps API, we can use an endpoint to get the latlng from the zip code.

For instance, we make a get request to

https://maps.googleapis.com/maps/api/geocode/json?key=YOUR_API_KEY&components=postal_code:97403

to get get the latlng data from the 97403 zip code.

An API key is required to make this request.

Conclusion

To get LatLng from zip code with Google Maps API, we can use an endpoint to get the latlng from the zip code.

Categories
Uncategorized

How to post image data using Postman?

Sometimes, we want to post image data using Postman.

In this article, we’ll look at how to post image data using Postman.

How to post image data using Postman?

To post image data using Postman, we can select form-data as the payload type.

Next, we enter the key for the form data entry in the key column.

Then we select the file in the value column.

Conclusion

To post image data using Postman, we can select form-data as the payload type.

Categories
Uncategorized

How to temporarily disable a foreign key constraint in MySQL?

To temporarily disable a foreign key constraint in MySQL, we set the FOREIGN_KEY_CHECKS environment variable.

To disable it, we run

SET FOREIGN_KEY_CHECKS=0;

to set FOREIGN_KEY_CHECKS to 0.

And then we enable it again by running

SET FOREIGN_KEY_CHECKS=1;

If you like the content of this blog, subscribe to my email list to get exclusive articles not available to anyone else.